Processing: Gravity Ball Game
Drag your mouse to control the ball to go left or right, but vertically the ball is controlled by gravity. You need to get all the black balls before you reach the ground to win. And if you touch a red ball, you lose all the black balls you have collected.
Also, this version uses object-oriented coding.