Skip to content

Commit c5d931c

Browse files
authored
Moving disclaimer comments inline
Moving disclaimer comments inline to better specify which boolean statement is being referred to.
1 parent 515d22d commit c5d931c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

getting_started/first_2d_game/03.coding_the_player.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ movement. Let's place this code at the end of the ``_process()`` function:
275275
if velocity.x != 0:
276276
$AnimatedSprite2D.animation = "walk"
277277
$AnimatedSprite2D.flip_v = false
278-
# See the note below about boolean assignment.
279-
$AnimatedSprite2D.flip_h = velocity.x < 0
278+
$AnimatedSprite2D.flip_h = velocity.x < 0 ## See the note below about this boolean assignment.
280279
elif velocity.y != 0:
281280
$AnimatedSprite2D.animation = "up"
282281
$AnimatedSprite2D.flip_v = velocity.y > 0
@@ -287,8 +286,7 @@ movement. Let's place this code at the end of the ``_process()`` function:
287286
{
288287
animatedSprite2D.Animation = "walk";
289288
animatedSprite2D.FlipV = false;
290-
// See the note below about boolean assignment.
291-
animatedSprite2D.FlipH = velocity.X < 0;
289+
animatedSprite2D.FlipH = velocity.X < 0; // See the note below about this boolean assignment.
292290
}
293291
else if (velocity.Y != 0)
294292
{

0 commit comments

Comments
 (0)