Arcade // Sector 08·04

Breakout

Thirty-two cyan blocks. One three-pixel ball. Three lives, zero mercy.

FIELD
400 × 600
GRID
8 × 4 · 50×20
BALL
r3 · 3.40 px/f
ENGINE
Canvas 2D
CRT-400 / READY / 60 HZ

Operations

  • ←→ or AD paddle
  • Mouse or Touch drag paddle
  • Space / Tap launch ball
  • P pause · R restart

Collision ledger

Every contact is an explicit AABB test. For bricks the overlap on each axis is measured (ox, oy); all touching bricks are candidates, the one with the deepest penetration is resolved, and exactly one brick dies per frame — the ball is ejected along the shallow axis so it can never nest inside a row.

Velocity magnitude is renormalised after every reflection (3.40 → 4.00 px/f ramp), |dy| is floored to stop endless horizontal ping-pong, and the paddle maps hit offset to a ±60° exit angle. Simulation runs on a fixed 16.66 ms tick with two sub-steps per tick, so 120 Hz phones never run at double speed and the ball never tunnels.