CABINET // 01  ·  HTML5 CANVAS
8 × 4 GRID · 32 BRICKS · 3 LIVES

Arcade · Vanilla JS · No libraries

BreakOut

A 400×600 play field, a 60 px paddle and a 3 px ball moving at ~3.4 px/frame. Fixed-timestep physics, swept collision resolution, and full touch control.

How to play 3 steps

  1. Move the paddleDrag anywhere on the screen (touch), slide the mouse, or hold ← → / A D. Paddle stays clamped to 0–340 px.
  2. Launch the ballTap, click or press SPACE. It leaves at 45° and the angle alternates side to side — never straight up.
  3. Clear all 32 bricks+10 per brick, 320 max. Hit edges to escape long horizontal rallies. Three drops and the cabinet eats the run.
LIVE READY 400×600

Telemetry READY

Score0
Best0
Streak—
Speed px/f3.40
Bricks left32
Frames / s60

Input map desktop

←A move left
→D move right
SPACE serve / launch
P pause · resume
R restart run