Browse Source

Add note about removing new_game() _ready() in 2D tut (#6781)

* Add note about removing new_game() _ready() in 2D tut

The Start button handles calling `new_game()` so without removing the `_ready()` function that called `new_game()`, the game will automatically start on launch.

* Revise 2d tut new_game() removal to be a reminder

Based on feedback from cbscribe since it's mentioned in the
previous part of the tutorial.
Brett Chalupa 2 years ago
parent
commit
c51ccca5f0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      getting_started/first_2d_game/06.heads_up_display.rst

+ 3 - 0
getting_started/first_2d_game/06.heads_up_display.rst

@@ -387,6 +387,9 @@ In ``game_over()`` we need to call the corresponding ``HUD`` function:
 
 
         _hud->show_game_over();
         _hud->show_game_over();
 
 
+Just a reminder: we don't want to start the new game automatically, so
+remove the call to ``new_game()`` in ``_ready()`` if you haven't yet.
+
 Finally, add this to ``_on_ScoreTimer_timeout()`` to keep the display in sync
 Finally, add this to ``_on_ScoreTimer_timeout()`` to keep the display in sync
 with the changing score:
 with the changing score: