collision function add top property to players add bottom property to players add left property to players add right to players add top bottom left right propertrties to the ball add function to check if the ball is hitting a paddle check if player one or player two by checking to see which side of the screen the player is on change the velocity of the ball depending on the angle and speed the ball hits the paddle TRIGONOMETRY!!! right around 25 minutes lots going on with this
Activity