From a24b42c3660f504754f50763aca50537ac950cb6 Mon Sep 17 00:00:00 2001 From: Hana - Piralein <48352564+Piralein@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:34:53 +0100 Subject: [PATCH] Add the reminder as warning --- getting_started/first_2d_game/06.heads_up_display.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/getting_started/first_2d_game/06.heads_up_display.rst b/getting_started/first_2d_game/06.heads_up_display.rst index ac2f2ffef66..a36f1c28681 100644 --- a/getting_started/first_2d_game/06.heads_up_display.rst +++ b/getting_started/first_2d_game/06.heads_up_display.rst @@ -371,9 +371,6 @@ In ``game_over()`` we need to call the corresponding ``HUD`` function: _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_score_timer_timeout()`` to keep the display in sync with the changing score: @@ -390,6 +387,12 @@ with the changing score: _hud->update_score(score); +.. warning:: + + Remember to remove the call to ``new_game()`` from + ``_ready()`` if you haven't already, otherwise + your game will start automatically. + Now you're ready to play! Click the "Play the Project" button. You will be asked to select a main scene, so choose ``main.tscn``.