Skip to content

Commit 065ebe2

Browse files
authored
Fix typo in jumping (#50)
* simplify jumping, add variable jumping * fix typo
1 parent 130040f commit 065ebe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_proofs/movement/jumping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ super.update(elapsed);
1717
FlxG.collide(box, sprite);
1818
1919
// jump if touching the box, and jump is pressed
20-
if (sprite.isTouching(DOWN) && !pad.buttonA.pressed)
20+
if (sprite.isTouching(DOWN) && pad.buttonA.pressed)
2121
sprite.velocity.y = -300;
2222
```

0 commit comments

Comments
 (0)