Cabinet 01 // VB-40600
Thirty-two bricks, one paddle, three lives. The ball never slows down — read the bounce angles or lose the field.
no libraries · canvas 2d · fixed 60 Hz step
Eight columns by four rows at 50 × 20, top-aligned, cell origin (col*50, row*20). Hitboxes carry a 1 px inset so the grooves between bricks are honest geometry, not decoration.
The ball rests at the paddle centre and leaves at (2, −2.8) normalised to a magnitude of 3.441, with a random horizontal sign — it never leaves straight up.
Contact offset maps to an exit angle up to ±60°. Hitting the rim throws the ball wide; dead centre keeps it near-vertical (with a nudge so it can't lock vertically).
AABB overlap is measured on both axes. The smaller penetration is the surface that was actually crossed — flip dy for top/bottom, dx for a side.
Two substeps per frame, and each substep resolves only the closest brick, ejects the ball along the normal and renormalises speed — so it can't tunnel or get lodged inside a row.
Sixteen frames of grace after a missed serve, then a life. Clear all 32 cells for a perfect 320. Both states render their own screen and a tappable restart on the canvas.
Figure A · axis test
Corner contacts still resolve correctly: the circle-to-rectangle distance test is the gate, the axis test only decides which way the ball leaves.