Baroody's Game Development Site

A Website to help you program computer games

Pong Tutorial

OK, here's where it gets really fun!  As you've seen before, the first real "arcade" computer game ever written was Pong.  I think you know the game as I've displayed it in class.  The first Pong was a two-player game, but we're going to start with a one-player version, from which you should be able to progress.

So, your game will look something like the image below:

Pong

Basically, you move the paddle to the left and to the right by using the left and right arrow keys on the keyboard.  The ball bounces off the top, left and right walls and off of the paddle.  The objective is to keep the ball "in play" for as long as possible.  The counter on the bottom records the number of times the ball hits the paddle.

Make sense?  I think you know what I mean, but if you don't, come and find me and I can show you how it works.  Alternatively, you can click here to play my version of the game.

If you're ready to start working on this game, click here or select Step 1: The Form on the navigation bar to the right.