Hi,
I'm currently developing a game like Breakout in C using allegro.
The player controls a paddle on the X-Axis and has to prevent the ball from hitting the ground.
My problem is that I cannot come up with how to solve the bouncing problem satisfactory. I want the ball to bounce of the paddle at an angle that depends on the distance from the paddle's center.
I know there are hundreds of threads you can find on google, and i looked through them all which took me days, but I could not get it to work.
If you could help me, that would be great !