jonoxia/platform-game — Issue #53: Physics needs wind resistance, deceleration
Author: jonoxia
Created: 2011-11-15 21:12:55+00:00
State: open
Labels: Physics

Pointed out by googleshng and satyreyes in this comment thread: http://www.evilbrainjono.net/blog?showcomments=true#1028c

1. Most sidescrollers let you decelerate faster than you accelerate, so that you need a running start to go fast but you can stop quickly and don't lose control of your character by going too fast. Pushing in the opposite direction you're moving should quickly bring you to a stop. This requires a separate deceleration constant that is higher than the acceleration constant.

2. Also, there is currently no force that slows down your horizontal movement while in the air; if you hold down the arrow key, you continue accelerating, and if you let go of the arrow key you keep a constant velocity. This is contrary to how most sidescrollers work and makes judging horizontal jumps too difficult. Add a wind resistance constant that can be tweaked until this feels right.