WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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)