Platformer: horizontal motion and gravity