
06-04-2006, 09:06 PM
|
|
Mr. Brightside
|
 |
Join Date: Dec 2005
Posts: 418
|
|
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. |
|
|
|