News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

Research : Pong

Started by hartnell, May 12, 2008, 04:46:40 AM

Previous topic - Next topic

hartnell

The PB LE is out so I'm going to start doing what I wanted to do a long time again -- study archetypal games and make clones. First up, naturally, is Pong. The first step is to write pseudo code.

If you want to see me do research on your favorite game, you should help. Here's my Pong pseudo-code this far :


If Player Press Left then move PADDLE left.
If Player Press Right then move PADDLE right.

If BALL is more left than center_of COMP then move COMP left
If BALL is more right than center_of COMP then move COMP right

If BALL is off screen left then reverse direction of BALL
If BALL is off screen right then reverse direction of BALL


I just scribbled this. Sprites for this project coming soon.

-- Shawn

hartnell

And here's a zip file with sprites and a starter source file.

-- Shawn

kevin

There's already a number of Pong examples & tutorials on the forums... Such as This & that.. 


hartnell

Well, now you have a few extra resources.

-- Shawn