|
-
Feb 8th, 2010, 09:08 AM
#3
Re: Help with my pong code
Another possibility, have a delay in reaction time movement. Don't make the computer paddle constantly follow the ball. After it hits the ball, let it idle and wait for the player to hit it. If the player hits it, start a random delay period and after that delay period, then move the paddle at some velocity to intercept the ball. Either it'll get there (a slow moving ball) or it won't (delay was too long and ball was too fast).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|