Pong

by diego holguin
See Code Download Embed
This is a simple game of pong.

The red paddle moves with the "w" and "s" keys.
The blue paddle moves with the "up" and "down" arrow keys

The left (red) paddle belongs to Player 1, and the right (blue) to Player 2

When the ball touches each paddle, a pop sound will be heard, and the ball will point in a random opposite direction.

A point is scored when the ball crosses -205x (left side, blue scores) or 205x (right side, red scores)

The ball may sometimes move a few degrees more once hitting a wall in order for it not to be stuck hitting repeatedly the sides of the stage 

Speed increases every time a paddle hits the ball.
 
The first player to reach 5 points will win the game.
 
To play again, answer "yes" when asked to play again, any other input will be considered a no.

The introduction is omitted if the players answer yes.  

Created November 6, 2019

Last updated December 3, 2019

Published December 3, 2019