32-brick lattice. three lives. 320 for the perfect run.
Lattice status
Tap the screen or hit Space to launch
Field notes
The unglamorous parts that decide whether a brick breaker feels good or broken.
01Contact-point angles. The paddle maps its centre to the edge across ±66°, so a graze fires the ball wide instead of straight back up.
02Least-penetration resolution. Each step compares overlap on X and Y, flips exactly one axis, ejects the ball and stops — no double bounces, no tunnelling.
03Fixed 60 Hz accumulator. Physics steps are decoupled from the draw loop, so 60 Hz and 120 Hz phones play identically at 3.4–4.0 px/frame.
04One brick per step. The deepest-overlapping brick wins; the neighbour gets its own step, keeping speed magnitude perfectly preserved.
05Pre-rendered brick sprites with baked glow plus a capped particle pool — 32 lit bricks cost less than one shadowBlur call.
06Pointer capture for touch, clamped so the paddle can never leave the 0–340 px lane. Portrait, landscape, 320 px wide and up.