Browse Source

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.
FishingSimulator 1 year ago
parent
commit
1f1f3674ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/first_2d_game/05.the_main_game_scene.rst

+ 1 - 1
getting_started/first_2d_game/05.the_main_game_scene.rst

@@ -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.