AS3 Ping Pong

Click here to download the source code

This is a port of Ping Pong in ActionScript 3/Flash 9. This port greatly improves code cleanliness and no longer relies on the main timeline or any Flash GUI elements, such as the library or drawing tools. Code is organized into the "pong" namespace in a variety of classes, mostly deriving from MovieClip, which the "document class" Game uses to compose the game scene.

Flash player 9 is required to play due to the usage of ActionScript 3.

As for playing the game, I quote the original PONG instructions: "Avoid missing ball". The only possible advanced technique is to hit the ball toward the edges of the paddle to angle the bounce more upward or downward than a straight reflection, as would occur in the center of the paddle. The first player to five wins the game.

Have fun!
-Jackson

©2006 Jackson Dunstan (jdunstan@gmail.com)