Cabinet 01 · Brick Breaker · Model 8×4

BREAKOUT

Thirty-two blocks in a cyan lattice. One paddle. Three balls. Steer with arrows, mouse or a thumb.

SCORE000
BEST—
STATEREADY
Paddle control · touch or arrows

Controls

←→AD SPACE · launchP · pauseR · restart TOUCH · drag paddle

On a phone: drag anywhere on the screen to slide the paddle, tap to serve.

Physics notes

  • STEPFixed 1/60 s accumulator, motion sub-stepped to ≤1 px so a 3 px ball never tunnels a 20 px brick.
  • AABBCircle-to-rect face test; smallest penetration axis decides flip dx vs flip dy. Corner ties flip both.
  • PADDLEContact offset maps to ±60° exit angle — edge hits skim, centre hits rebound straight up.
  • SPEED|v| held constant at 3.2–3.9 px/frame, renormalised after every reflection.
  • ORDEROne collision resolved per sub-step, ball pushed clear of the face — no double hits, no brick snagging.