how do you have a ball bound off a wall at the save angle that it hit? like light
Hmmm......
Are you making a pong game with boxes? I made such a game....
let's see...
The angle changes in one of two ways, or both of two ways, when hitting a straight wall:
1) dx = -dx
2) dy = -dy
Experiment...
(dx and dy are the changes to x and y each game frame)
Quote:Hmmm......
Are you making a pong game with boxes? I made such a game....
kind of but you'll see when it's done. ok... ill expirement