this is a template for a bouncing ball- you can use it in your projects if you'd like. use the arrow keys to move the ball. press space to make the ball bounce this template simulates a planet that is MUCH smaller than earth, as shown by the scale. the gravity is proportional to about... 1/100 of the size of earth at full screen.
in case your wondering, the ball bounces up at 4.8 "meters" per second upon pressing space. also, the friction is not correct, but is is realistic