I am building a Pong clone to learn interactive programming and I've stumbled in getting the ball movement and bouncing on the paddles right.
If I play the original game I can't really understand how the "spin" and the paddle bounce works.
I've been searching a bit on the internet and all I got was just more confusion.
Can anybody explain me how the bounce is handled? If the paddle stands perfectly still and the ball, just moving on x, hits the paddle at the center I simply get -x, that is clear.
What happens if you hit the paddle on the sides? What changes if when the ball hits the paddle the paddle is also moving?
I did an Arkanoid-like implementation but it is far from the real Pong feeling.