Operations
- ←→ or AD paddle
- Mouse or Touch drag paddle
- Space / Tap launch ball
- P pause · R restart
Thirty-two cyan blocks. One three-pixel ball. Three lives, zero mercy.
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.