Thread: Pong game AI
View Single Post
  #5  
Old 06-05-2006, 03:44 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
That would screw up because I wasn't thinking. Should be paddleheight :P
anyways, the best way to do AI for pong is to make the paddle at a constant speed, and have it go up at that speed when the ball is higher, and down when the ball is lower, that way it's still possible to score against the AI, but it's not overly easy :P
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote