Thread: Pong game AI
View Single Post
  #1  
Old 06-04-2006, 09:06 PM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
Pong game AI

Ok, so I am making a mini pong arcade game. Currently the ball bounces off walls and players and restarts when it goes behind the player- basic pong concept; but the enemy AI is too simple,
if the ball's y is less than its, it moves down and well, you know.

How would I make the enemy predict and possibly be wrong where the ball will be?

by the way, the ball doesnt use a direction to move, I have numbers being added or subtracted from the x and y of the ball.
__________________
Reply With Quote