In this minilab, you'll complete a two-player game of ping pong. To play: one player will move their bat with the mouse and the other player will move their bat with the up and down arrow keys.
Complete the starter code in order to make the ping pong game functional. You'll need to use variables to increase and decrease the score of a player throughout the game. The code to move the bats and the ball is already programmed. Try to think about when red and blue should earn points and how many points that a player needs to win.
What you'll learn
- Review the use of conditional statements.
- Use variables.