Update "The Main Game Scene" for clarity

Many people have reported having issues connecting HUD's start_game and the main node's new_game() in the next step of this tutorial. This occurred for me because the documentation states that "new_game()" should be removed from the _ready() function, but does not include instructions to add "pass" back (and pass is not left in the example code when "new_game()" is added to the function, so the initial one will not remain). Having the function declaration without "pass" breaks all the following functions, preventing new_game() (or any Main functions) from being connected.
This commit is contained in:
FishingSimulator
2024-01-05 14:58:44 +11:00
committed by GitHub
parent 43f0195ba1
commit 1f1f3674ab

View File

@@ -288,7 +288,7 @@ You should be able to move the player around, see mobs spawning, and see the
player disappear when hit by a mob.
When you're sure everything is working, remove the call to ``new_game()`` from
``_ready()``.
``_ready()`` and replace it with ``pass``.
What's our game lacking? Some user interface. In the next lesson, we'll add a
title screen and display the player's score.