jonoxia / platform-game

untitled HTML 5 side-scroller
15 stars 5 forks source link

Acceleration on ground should be higher than acceleration in air #51

Closed jonoxia closed 12 years ago

jonoxia commented 13 years ago

I think part of the reason the game feels so hard to control right now is that you don't have any more traction on the ground than you do when you're in the air. Should be easier to change direction when something solid is under your feet. Maybe add the ground friction (which should be a property of the platform!) to the x-axis acceleration when there's ground under the player?

jonoxia commented 12 years ago

Done in https://github.com/jonoxia/platform-game/commit/a22d4fc83d0d275df1e0d6a32e679b7af7a94506