# This is a simple Verse script to control the Title Screen
# 'Event' is like a trigger that fires when something happens (e.g., player presses a button)
ShowTitleScreen := () -> void:
# This function displays the widget
# 'HUD_Message' is the device we placed in the level
HUD_Message.Show()
HideTitleScreen := () -> void:
# This function hides the widget
HUD_Message.Hide()
# 'OnBegin' is a function that runs automatically when the island starts
OnBegin := () -> void:
ShowTitleScreen()
# Wait for player input to hide the title
# (Simplified logic - in reality, you'd bind this to a specific button event)
# For now, let's just show it for 5 seconds as a demo
Wait(5.0)
HideTitleScreen()
Verse Library
verse
01 Fragment
Displays a title screen widget on game start and hides it after a short delay to guide players into the match.
verse-library/3-designing-the-title-screen/01-fragment.verse