# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/make-a-soccer-game
# Local doc: epic-docs/documentation/en-us/fortnite/make-a-soccer-game.md
# Section: Make a Game Manager Using Verse
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
# A Verse-authored creative device that can be placed in a level
game_manager := class(creative_device):
@editable
TeamAGoal:volume_device = volume_device {}
@editable
TeamBGoal:volume_device = volume_device {}
@editable
TrackerScoreTeamA:tracker_device = tracker_device {}
@editable
TrackerScoreTeamB:tracker_device = tracker_device {}
@editable
HUDMessageGoalTeamA:hud_message_device = hud_message_device {}
@editable
HUDMessageGoalTeamB:hud_message_device = hud_message_device {}
@editable
FootballA:creative_prop = creative_prop {}
# Runs when the device is started in a game
OnBegin<override>()<suspends>:void=
TeamAGoal.PropEnterEvent.Subscribe(OnTeamAGoalEnter)
TeamAGoal.PropExitEvent.Subscribe(OnTeamAGoalExit)
TeamBGoal.PropEnterEvent.Subscribe(OnTeamBGoalEnter)
TeamBGoal.PropExitEvent.Subscribe(OnTeamBGoalExit)
OnTeamAGoalEnter(prop : creative_prop) : void=
Verse Library
verse
01 Make A Game Manager Using Verse
Manages soccer gameplay logic, goal detection, score tracking, and HUD updates.
extracted-snippets/documentation/en-us/fortnite/make-a-soccer-game/01-make-a-game-manager-using-verse.verse
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.