UnderwareDESIGN

PlayBASIC => Beginners => Topic started by: hartnell on May 12, 2008, 04:46:40 AM

Title: Research : Pong
Post by: hartnell on May 12, 2008, 04:46:40 AM
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
Title: Re: Research : Pong
Post by: hartnell on May 12, 2008, 06:29:02 AM
And here's a zip file with sprites and a starter source file.

-- Shawn
Title: Re: Research : Pong
Post by: kevin on May 13, 2008, 01:31:18 PM
There's already a number of Pong examples & tutorials on the forums... Such as This (http://www.underwaredesign.com/forums/index.php?topic=2405.0) & that (http://www.underwaredesign.com/forums/index.php?topic=2405.0).. 

Title: Re: Research : Pong
Post by: hartnell on May 20, 2008, 07:15:18 AM
Well, now you have a few extra resources.

-- Shawn