Change the jump() condition from checking velocity to detecting whether the character's feet are touching a platform. This prevents mid-air jumps and makes jump behavior more intuitive for platformer gameplay.
107 B
107 B
How to run
Simply run:
python3 -m http.server 8081
Inside of the project's cloned folder