Verse Library verse

01 Fragment

Defines a compile-time constant to configure player team sizes in island settings.

verse-library/configure-the-island-settings/01-fragment.verse

# This is a simple Verse script example
# It shows how the game stores the team size as a constant

using { /Verse.org/Simulation }

# We define a constant called TeamSize
# <computes> means it is calculated once at load time
TeamSize<computes> : int = 2

# The game uses this number to place players
# It knows to put 2 players on Team 1
# And 2 players on Team 2
# This matches our Island Settings!

Comments

    Sign in to vote, comment, or suggest an edit. Sign in