Pong is a simple sports game that simulates table tennis. The game features two paddles and a ball, with the objective being to use the paddles to hit the ball back and forth. The players score points when the opponent fails to return the ball. The first player to reach ten points wins the game.
NonBlockingGame
Player One: Use the 'W' key to move the paddle up and the 'S' key to move the paddle down. Player Two: Use the 'Up' arrow key to move the paddle up and the 'Down' arrow key to move the paddle down.
Create two players and paddles for the players, and give the paddles movement.
Create a ball and give it a random velocity.
Write function to keep track of score and update the scoreboard.
Write function that gets called once someone gets to 10 points and wins the game.
Put everything together to simulate a game of pong.
NonBlocking Games Documentation
NonBlocking Games Documentation