Skip to content

Commit

Permalink
gkidgf
Browse files Browse the repository at this point in the history
  • Loading branch information
iLikeGrape committed Dec 16, 2024
1 parent 787e697 commit 3aba4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platformerTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function update() {
playerVelY = 0;
}
// If player is moving upwards and touches the platform
else if (playerVelY < 0 && platform.y) {
else if (playerVelY < 0) {
player.y = platform.y + platform.height;
playerVelY = 0;
}
Expand Down

0 comments on commit 3aba4e7

Please sign in to comment.