Calls a function collision between ball and paddle that adds velocity to the ball given the current velocity of the paddle. The paddle's speed is currently a three-state thing: 5 pixels/frame going left or right, or standing still. This could be improved. Also the paddles could use an extension of their sprite class as to add some properties to them. It is currently some duplicating of code in order to make this functionality for both paddles which is not very clean or lean.
Calls a function collision between ball and paddle that adds velocity to the ball given the current velocity of the paddle. The paddle's speed is currently a three-state thing: 5 pixels/frame going left or right, or standing still. This could be improved. Also the paddles could use an extension of their sprite class as to add some properties to them. It is currently some duplicating of code in order to make this functionality for both paddles which is not very clean or lean.