# Pong

> Play the classic Pong arcade game against a CPU opponent. First to 7 points wins, with angled paddle bounces and a ball that speeds up on every hit.

- Open the tool: https://overtooled.com/pong
- Category: Games
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: pong, game, arcade, paddle, classic, retro

## In short

Play classic Pong against a CPU opponent, first to 7 wins.

## Overview

Single-player Pong against a CPU paddle on a 640x400 court. You control the blue left paddle, the CPU the red right one; a point is scored when the ball passes a paddle, and the first side to 7 points wins.

## Features

- CPU opponent only (no two-player mode, no difficulty setting): it tracks the ball only once the ball is heading its way and past 40% of the court width, re-picks a random aiming offset of up to 25px every 800ms, and drifts back to the centre otherwise
- Bounce angle depends on where the ball hits the paddle (centre = flat, edges = steep)
- Ball speed rises 5% on every paddle hit, capped at 10 units per frame; after each point the ball restarts from the centre in a random direction
- Physics are delta-time scaled to 60 fps, so high-refresh screens do not speed the game up
- Auto-pauses when the tab is hidden or the window loses focus
- Fullscreen button; on phones the game switches to a full-screen play mode while playing

## How to use it

1. Press Start Game (or Space).
2. Move your paddle with the arrow keys or W/S, or drag on the court on a touch screen.
3. Return the ball; hit it near a paddle edge for a steeper angle.
4. First to 7 wins; press Play Again for a new match.

## Inputs

- Keyboard: Up/Down arrows or W/S (held) move the paddle
- Touch: drag anywhere on the court; the paddle follows the finger and sits slightly above it so the finger does not hide it

## Outputs

- Player and CPU scores (on the court and in the stat cards)
- Win / loss message at the end of the match

## Limits and notes

- Nothing is saved: no high score or match history
- Paddle speed is fixed; there are no speed or difficulty options

## Keyboard shortcuts

- Up / W: move paddle up
- Down / S: move paddle down
- Space / Enter: start, resume or play again (when no button has focus)
- Esc / P: pause and resume

## Questions and answers

### How does Pong work?

The game runs a requestAnimationFrame loop scaled to 60fps. The ball speeds up 5% on every paddle hit (capped at 10 units per frame), and the bounce angle depends on where it hits the paddle. The CPU paddle only tracks the ball once it is heading its way and past 40% of the court width, and it re-picks a random aiming offset every 800ms, so it can be beaten. First to 7 points wins.

### Can I play against another person?

No. Pong is single-player against a CPU paddle. Both the arrow keys and W/S move your paddle (the left one); the right paddle is always the CPU.

### Can I adjust the difficulty?

No. Pong has one CPU difficulty and no speed settings. The CPU only reacts once the ball is heading its way and aims slightly off, so it has blind spots you can exploit, and the ball speeds up 5% with every paddle hit.

### Does it work on mobile?

Yes. On a touch screen, drag anywhere on the court to move your paddle; it sits just above your finger so you can still see it. On phones the game switches to a full-screen play mode while you play.

## Related tools

- [Snake](https://overtooled.com/snake.md): Classic snake game with increasing speed, swipe controls, and high score tracking
- [Asteroids](https://overtooled.com/asteroids.md): Play the classic Asteroids space shooter with retro vector graphics
- [Block Drop](https://overtooled.com/block-drop.md): Stack falling tetrominoes to clear rows with keyboard controls and high scores
- [Farkle](https://overtooled.com/farkle.md): Push your luck in this classic dice game -- roll, score, and bank before you farkle

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
