Skip to content

About

Two people, one keyboard, one Court: Pong in three static files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pling · plong

Two people, one keyboard, one Court. Nothing to install, nothing to build: an HTML file, a stylesheet, one JS file.

Play it

Play it on GitHub Pages — or open index.html yourself: from a static server, or by double-clicking the file in a modern browser. Either way the whole game is one HTML file, one stylesheet, one JS file.

Controls

Left Player Right Player
W up, S down ↑ up, ↓ down

Both keys at once means still, not jitter.

Both players
any key Serve from the title card
Esc Pause / resume
M Mute the Court
R Restart the Match, even mid-Rally

Rules

A Serve puts the Ball in play at the centre. The first Rally to end wins a Point; the first player to seven Points wins the Match, and a Match can never end level. The Serve always goes back to the player who just lost one, so neither side gets to sit at the back of the Court forever.

Notes

  • No libraries, no fonts, no images, no audio files. The Court is drawn with Canvas primitives, the blips are synthesised on the spot.
  • The vocabulary in GLOSSARY.md is the game's own — the code and the README use it, and the two decisions in docs/adr/ record the parts that a later reader would otherwise wonder about.
  • Sound is a nicety: if the browser refuses, the game plays on in silence.

Licensed under the MIT License — see LICENSE.

About

Two people, one keyboard, one Court: Pong in three static files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages