Skip to content

Commit 3aba4e7

Browse files
committed
gkidgf
1 parent 787e697 commit 3aba4e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platformerTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function update() {
137137
playerVelY = 0;
138138
}
139139
// If player is moving upwards and touches the platform
140-
else if (playerVelY < 0 && platform.y) {
140+
else if (playerVelY < 0) {
141141
player.y = platform.y + platform.height;
142142
playerVelY = 0;
143143
}

0 commit comments

Comments
 (0)