This is a game inspired by one of the oldest arcade video games: Atari’s Pong. In this two-player game, each player controls a paddle, represented by a white rectangle. The W and S keys move the paddle on the left up and down, and the up and down arrow keys move the paddle on the right up and down. Players score points by bouncing the ball, represented by a white square, past the edge of the opponent’s side of the canvas.`
Ping Pong by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.
Related Examples

Large purple circle on a grey background.
Circle Clicker
Make a game about clicking a circle quickly and save the high score.

Two narrow white rectangles and a white square representing the paddles and ball in a game of ping pong.
Ping Pong
Make a game inspired by Atari's Pong.

A narrow green L shape and a red square representing the snake and fruit in the arcade game Snake.
Snake
Make a game based on Snake arcade games.