Commit 4971476
committed
Platformer: If the player does not move, then no need further check
If the player does not move, then there is no need to check it is on the
floor, nor velocity of y direction. Use the "else if" condition to avoid
further check which improves performance.1 parent ffa3670 commit 4971476
1 file changed
+101
-101
lines changed
0 commit comments