Pong

Classic ball-and-paddle game โ€” vs computer or two on one device

Loadingโ€ฆ

Was this tool helpful?

About this tool

Pong is the classic game of batting a ball back and forth with two paddles. The court uses an abstract 200 by 120 coordinate space; the ball leaves the serve at a set speed and gets 6% faster every time a paddle touches it, until it reaches a fixed speed cap and stops accelerating. For example, the longer a rally runs, the more noticeably fast the ball moves, and hitting it near the edge of your paddle sends it off at a much steeper angle than hitting it dead center. It supports three ways to play: against the computer (easy, normal, hard), two players sharing one device, and online play with a friend through an invite link. In computer and two-player modes, everything, including the ball, is computed entirely in your browser and nothing is sent anywhere; online mode is the only exception, where your paddle input travels to a dedicated realtime server.

How to use

  1. Pick your opponent on the start screen: Computer, Two players, or Online (invite a friend).
  2. If you chose Computer, also pick a difficulty: Easy, Normal, or Hard.
  3. For Online, tap "Invite a friend" to share the link and wait for your friend to join.
  4. Press "Start game" to begin after the countdown, and use "Fullscreen" to fill the screen.
  5. Move your paddle with the arrow keys or W and S, or drag up and down on screen; on mobile you can also use the on-screen left and right buttons.
  6. The ball bounces at a sharper angle the closer it lands to the edge of your paddle, and speeds up a little with every hit.
  7. First to 11 points wins; press "New game" (or "Rematch" online) to play again.

Frequently asked questions

How do two people play on one device?
Choose Two players: the left paddle uses W and S, the right uses the arrow keys. On a touch screen, drag on the left and right halves, or use the on-screen left and right buttons at top and bottom.
What changes with difficulty?
At lower difficulty the computer trusts its prediction of the ball less and follows it clumsily, and it needs a bigger gap before it starts moving. Hard reads the ball position almost perfectly and reacts to even a tiny gap, so it rarely misses.
Does the ball get too fast to see?
Each paddle hit speeds it up by 6%, but it stops accelerating once it reaches a fixed cap, so it never becomes uncontrollable, though a long rally will test your reflexes.
How does online play with a friend work?
Choosing Online creates an invite link. Send it to a friend, and once they join, either player can press Start to begin together. From that point, the physics run on a dedicated realtime server at 60 updates per second and are broadcast to both screens 30 times per second.
What happens if my opponent leaves during an online match?
The realtime server never writes match data to a database, so if your opponent leaves, that match simply ends with nothing left behind. To play again you need to share a fresh invite link.
What data gets sent to a server while playing?
In Computer and Two players modes, nothing is sent anywhere. Only in Online mode does your paddle input travel to the realtime server; nothing else is stored.
Can I play fullscreen on my phone?
Yes. Most browsers get a native fullscreen request; on iPhone Safari, which does not support element fullscreen, it automatically falls back to a screen filling overlay instead.
Why does the ball bounce off at different angles?
The angle depends on exactly where it hits your paddle. A hit near the center goes out almost straight, while a hit near the edge can bounce off at up to roughly 66 degrees.
What are the keyboard controls?
In solo, computer, and online modes you can use either the arrow keys or W and S. In Two players mode, the left paddle is fixed to W and S and the right to the arrow keys.

Similar tools