This project shows the usual method of making objects bounce off of horizontal and vertical surfaces. I've also made it so that the paddle (black rectangle) uses a modification of the horizontal surface method that turns tha ball away from the paddle a bit if the ball hits close to the ends of paddle. This lets the user control the ball more easily. The paddle tracks the mouse horizontal position.