WEBTENNIS

HTML / JavaScript · local & online

Controls
Player 1 (blue)Player 2 (red)
Presets

Click a key to change it.

  • Serving: press once to throw the ball up, hold to wind up, and it goes when the ball comes down.
  • Start early. Hold the button before the ball reaches you: the longer you have been winding up when it arrives, the harder you hit it and the more of your aim survives. A shot thrown at the last moment goes straight back, or into the net.
  • Holding the button plants you. While you hold it the stick shapes the shot instead of moving your feet - so working the ball only pays if you are already standing where you need to be. Let go to run again.
  • The ring around your player means the ball is in reach, and a paler one means you are planted and winding up.
  • Steer while you swing to place it, and keep steering for a second after you hit it to bend it in the air.
  • Lob sends it high over somebody at the net - and the CPU will lob you back if you camp there.
  • Volley anything up to head height straight out of the air.
  • Hit hard to force a mistake: pace takes preparation away from whoever has to answer it.
  • Come to the net for much sharper angles - and much less time to react to what comes back.
  • You have two serves. Miss both and the point is gone.
High scores

One player opens a match and passes on the code; the other enters it. Whoever opens the match plays blue, the second player red.

Needs a relay: run npm start yourself, or put the address of a Cloudflare Worker in src/config.js. See the README.

HIGH SCORE

Tap the arrows, or use the stick: up and down for the letter, left and right to move along, hit to confirm. Typing works too.

PAUSED

Esc to carry on, or press resume.

MATCH OVER