Skip to content

Commit 4971476

Browse files
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

File tree

1 file changed

+101
-101
lines changed

1 file changed

+101
-101
lines changed

0 commit comments

Comments
 (0)