Examples Ping Pong

Ping Pong

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: Created by Caleb Foss. From 2024 onwards, edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: 2023 code. You can suggest improvements by contributing to the current website!