Browse Source

Merge pull request #2799 from anoadragon453/anoa/clean_up_code_example

Clean up Getting Started code example
Hugo Locurcio 5 years ago
parent
commit
a17c489aa2
1 changed files with 5 additions and 1 deletions
  1. 5 1
      getting_started/step_by_step/your_first_game.rst

+ 5 - 1
getting_started/step_by_step/your_first_game.rst

@@ -995,10 +995,14 @@ temporarily, such as "Get Ready". On the ``MessageTimer``, set the
 
 
     func show_game_over():
     func show_game_over():
         show_message("Game Over")
         show_message("Game Over")
+
         yield($MessageTimer, "timeout")
         yield($MessageTimer, "timeout")
+
         $MessageLabel.text = "Dodge the\nCreeps!"
         $MessageLabel.text = "Dodge the\nCreeps!"
         $MessageLabel.show()
         $MessageLabel.show()
-        yield(get_tree().create_timer(1), 'timeout')
+
+        yield(get_tree().create_timer(1), "timeout")
+
         $StartButton.show()
         $StartButton.show()
 
 
  .. code-tab:: csharp
  .. code-tab:: csharp