Browse Source

Merge pull request #8832 from kylestarr/patch-2

Moving disclaimer comments inline
Matthew 1 year ago
parent
commit
af5d7d0223
1 changed files with 2 additions and 2 deletions
  1. 2 2
      getting_started/first_2d_game/03.coding_the_player.rst

+ 2 - 2
getting_started/first_2d_game/03.coding_the_player.rst

@@ -275,7 +275,7 @@ movement. Let's place this code at the end of the ``_process()`` function:
         if velocity.x != 0:
         if velocity.x != 0:
             $AnimatedSprite2D.animation = "walk"
             $AnimatedSprite2D.animation = "walk"
             $AnimatedSprite2D.flip_v = false
             $AnimatedSprite2D.flip_v = false
-            # See the note below about boolean assignment.
+            # See the note below about the following boolean assignment.
             $AnimatedSprite2D.flip_h = velocity.x < 0
             $AnimatedSprite2D.flip_h = velocity.x < 0
         elif velocity.y != 0:
         elif velocity.y != 0:
             $AnimatedSprite2D.animation = "up"
             $AnimatedSprite2D.animation = "up"
@@ -287,7 +287,7 @@ movement. Let's place this code at the end of the ``_process()`` function:
         {
         {
             animatedSprite2D.Animation = "walk";
             animatedSprite2D.Animation = "walk";
             animatedSprite2D.FlipV = false;
             animatedSprite2D.FlipV = false;
-            // See the note below about boolean assignment.
+            // See the note below about the following boolean assignment.
             animatedSprite2D.FlipH = velocity.X < 0;
             animatedSprite2D.FlipH = velocity.X < 0;
         }
         }
         else if (velocity.Y != 0)
         else if (velocity.Y != 0)