Cabinet 01 // VB-40600

Breakout

Thirty-two bricks, one paddle, three lives. The ball never slows down — read the bounce angles or lose the field.

Field
400×600
Grid
8 × 4
Bricks
32
Target
60 FPS
VB-40600 CRT · 400 × 600
drag to move · tap to launch

Operating manual

no libraries · canvas 2d · fixed 60 Hz step

  1. The lattice

    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.

  2. Launch vector

    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.

  3. Paddle steering

    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).

  4. Side selection

    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.

  5. One hit per step

    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.

  6. Defeat & victory

    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

overlapY = 6 ✔ overlapX = 96 flip dy min(overlapX, overlapY) → resolve on that axis, eject ball, destroy cell

Corner contacts still resolve correctly: the circle-to-rectangle distance test is the gate, the axis test only decides which way the ball leaves.