Jumping & running physics

Box2D Physics

Hero body

Body for each platform

Platform collision

Running on a platform (permanent state)

Falling down (no contact with a platform)

Jumping (when standing/running on a platform)

Hitting platform from below (when jumping)

Hitting platform from front/side

Obstacles & items

Collision detection

Static

Dynamic

Event upon collision

Power-up

Speed slow-down

Health damage

Moving platforms

Enemies

Parallax scrolling

Menu UI

Settings menu

Configurable controls