Verse Library verse

02 Fragment

Evaluates a score threshold to trigger game-ending actions and display a victory screen.

verse-library/verse-layout-and-structure/02-fragment.verse

if (CurrentScore >= WinningScore):
    EndGame()
    ShowVictoryScreen()

Comments

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