Mini basketball game - gravity and bounce tutorial
Press down arrow to tap on the ball.
Play with the ball any way you want. Can you make it bouncing again after it stopped? Can you get it up to the celiing? Everything is only realized by the code shown on background.
By the way, the gravity itself is only one line: "change vel up by -0.5".