Skip to content

Commit

Permalink
Merge pull request #8437 from Piralein/moreorlessorwarning
Browse files Browse the repository at this point in the history
Remove the remaining reminder and add it as a warning (Your first 2D game - Heads up display)
  • Loading branch information
mhilbrunner authored Nov 10, 2023
2 parents e760a9f + a24b42c commit 66b59c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions getting_started/first_2d_game/06.heads_up_display.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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``.

Expand Down

0 comments on commit 66b59c1

Please sign in to comment.