Use the sliders to control the game properties. Move the cube with the arrow keys, or drag it around. Press space to show/hide sliders
A quick demo of how to make the gravity work sideways. Direction 0 = normal gravity, positive = down, negative = up Direction 1 = sideways gravity, positive = left, negative = right The speed caps xmax and ymax are used to cap speed parallel to and perpendicular to gravity, so when in sideways mode xmax is actually the maximum y speed and vice versa.