Verse Library verse

13 Defining Completion And Failure States For The Gam

Defines custom zone tags, logging channels, and the main game coordinator class with setup logic.

extracted-snippets/documentation/en-us/uefn/pizza-pursuit-3-creating-the-game-loop-in-verse/13-defining-completion-and-failure-states-for-the-gam.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/pizza-pursuit-3-creating-the-game-loop-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/pizza-pursuit-3-creating-the-game-loop-in-verse.md
# Section:    Defining Completion and Failure States for the Game Loop
 using { /Verse.org/Simulation }
 using { /Fortnite.com/Devices }
 using { /Fortnite.com/Vehicles }
 using { /Fortnite.com/Characters }
 using { /Fortnite.com/Playspaces }
 using { /Verse.org/Random }
 using { /UnrealEngine.com/Temporary/Diagnostics }
 using { /UnrealEngine.com/Temporary/SpatialMath }
 using { /UnrealEngine.com/Temporary/Curves }
 using { /Verse.org/Simulation/Tags }

 # Game zones tags
 pickup_zone_tag<public> := class(tag):
 pickup_zone_level_1_tag<public> := class(pickup_zone_tag):
 pickup_zone_level_2_tag<public> := class(pickup_zone_tag):
 pickup_zone_level_3_tag<public> := class(pickup_zone_tag):
 delivery_zone_tag<public> := class(tag):

 log_pizza_pursuit<internal> := class(log_channel){}

 game_coordinator_device<public> := class(creative_device):
     # How long the countdown timer will start counting down from.
     @editable
     InitialCountdownTime<public> : float = 30.0

     @editable
     EndGame<public> : end_game_device = end_game_device{}

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

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