Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Breakout · Neon Clone
English | Deutsch
A complete Breakout game in a single HTML file: neon graphics, power-ups, procedural chip-tune music and special levels. No build step, no dependencies, runs offline.
Features
- Curved paddle physics, sub-step collision (no tunnelling), combo multiplier
- Power-ups: wide paddle, multi-ball, laser, slow motion, catch, pierce, extra life, free-moving paddle, plus two penalties
- Special levels every 4th level: pyramid, upside-down, fortress, two paddles
- Checkpoints every 5 levels and 3 continues per game; top-5 high score
- Procedural chip-tune music via WebAudio (three level themes and a hidden one)
- Scales to any window size, HiDPI-sharp, mouse, touch and keyboard
Requirements
A current desktop or mobile browser. Node.js only for running the tests.
Installation
None. Clone or download the repository.
Usage
Open index.html in the browser.
| Input | Action |
|---|---|
| Click into the field | capture mouse and launch the ball |
Mouse / touch, ← → |
move paddle |
Space |
launch ball / fire laser |
↑ ↓ |
move the free paddle or the side paddles |
P / R / M |
pause / restart / music on-off |
Esc |
release the mouse |
Options (round paddle, auto-fire, power-ups, music, level select) are stored in
localStorage. URL parameters for testing: ?level=16,
?variant=split|upside|fort|pyramid, ?debug=1.
Configuration
Gameplay constants such as CHECKPOINT_EVERY and EGG_CHANCE are defined at
the top of the script in index.html.
Development
node test/pu-test.js # expected output: ALLE TESTS OK
tools/midi_notes.py dumps the notes of a MIDI file as JSON; it was used to
derive the hidden music theme. More details (in German):
docs/DETAILS.md.
License
MIT, see LICENSE.