Start and end screens
You need two scenes for this part: a start or title screen that shows before the game (and lets the player start the game), and a game over screen to notify the player that the game has ended.
Make a new scene and add a Control node named StartScreen. Add a Label as a child and add res://assets/Unique.ttf as a new DynamicFont with a font size of 64. Set the Align and Valign properties to Center and the Text to Escape the Maze!. In the Layout menu, select Full Rect. Now, duplicate this node and set the second label's Text to Press <space>.
For this demonstration, the StartScreen is being kept very plain. Once you have it working, feel free to add decorations, or even an AnimationPlayer to make a player Sprite run across ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access