This program plays a classic version of single player pong. It uses a MovingBall which keeps track of both x-speed and y-speed to bounce around the playing field.
Click below to download the source files for Pong.