BREAKOUT 400×600 field · 8×4 bricks · 320 max
←→steer Spacelaunch -- fps sfx off
Field 01 // brick grid ready
drag / move across the field to steer

Event log

idle

Collision rules

aabb + min-penetration
WALL

Expanded AABB against the play field; flip dx on sides, dy on the ceiling, position clamped to the radius.

BRICK

32 tiles tested per substep; only the minimum-penetration hit resolves — one brick per contact, dead bricks are skipped so the ball never re-hits.

PADDLE

Hit offset maps to a ±62° exit vector; paddle velocity is added as spin, then the vector is renormalised so speed magnitude is preserved.

FLOOR

Centre passes y = 600 + r → life lost. Three exits end the run.