I am pretty new to game developing but got a book and a library called CDX.
The first chapter is about creating Pong as it is a very simple game. But I would like to make it a bit more complicated than just negating the X and Y velocity of the ball whenever it hits things, so I thought:
Why not make the ball bounce depending on where it hits the paddle?
So what I would like to do is just setting the balls Y speed (I have the paddles on the left and right corners of the screen) depending how high/low the ball hits the paddle. So if it hits the middle it keeps the Y, and depending on how high/low it hits the paddle I want to set the Y value to a higher/lower value. So if I hit it at the very top the paddle, the Y velocity should be pretty high, but if I hit the centre of the paddle it's not very a very high value at all.
If you understand what I mean and if you feel like helping feel free to post!