Verse Library verse

04 Device

Defines a Creative Device class managing a score variable and initializing on game start.

verse-library/verse-layout-and-structure/04-device.verse

score_manager := class(creative_device):

    var Score : int = 0

    OnBegin<override>() : void =
        Print("Score manager ready")

Comments

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