Canvas Arcade · Cabinet CAB-04 · Insert coin

Breakout

32 bricks · 3 lives · one 3px ball at 3.4 px/frame. Clear the wall to advance — the ball only gets faster.

HI-SCORE0000
LIVE SCORE 0000 LIVES 3 60 FPS
DESKTOP ← → OR MOUSE · MOBILE DRAG THE FIELD · TAP TO SERVE · TOP BAR PAUSES
Tech sheetREV 1.0 · VANILLA JS / CANVAS 2D
Playfield400 × 600 px · DPR-scaled
Brick grid8 × 4 @ 50 × 20 px, +10 pts
Paddle60 × 10 @ y 580 · clamp 0–340
Ballr 3 · (2, −2.8) normalized
Speed3.40 → 4.00 px/frame
Timestepfixed 16.67 ms accumulator
Collisionexpanded AABB · min-penetration side
Target60 FPS · one hit resolved / step

Side resolution. Each candidate brick is tested against the ball's AABB inflated by its radius. The smallest of the four penetrations decides the face, so the correct component flips and the ball is pushed clear of the brick before the next step — no sticking, no double-hits.

One hit per step. Candidates are sorted by penetration depth and only the nearest resolves, so multi-brick corner contacts never produce a jittery double reflection.

Paddle english. Contact point maps to a ±60° exit angle and paddle velocity is injected into the horizontal component, then the vector is renormalized back to the current speed — magnitude is always conserved.

CAB-04 · Breakout · Single file, zero dependenciesSYS 00.0 s