Thread: Pong game AI
View Single Post
  #6  
Old 06-09-2006, 11:32 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
I made a pong game for Playstation 2, and for the AI I basically said that if the ball is above the paddle, move up, if its below, move down. I then limited the maximum speed at which the paddle could move, so the way to beat it was to hit things at quite a sharp diagonal (so that it cant keep up with tracking), or into the corner opposite from it (so that it cant get there in time).

It worked ok. You could basically vary the difficulty by varying the maximum AI paddle speed.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote