The Playfield
A strict 400×600 grid: eight columns by four rows of bricks, a white paddle pinned to the bottom edge, and a single yellow ball that never stops moving.
Clear all 32 bricks. Protect your three lives. One ball, one paddle, zero mercy.
A strict 400×600 grid: eight columns by four rows of bricks, a white paddle pinned to the bottom edge, and a single yellow ball that never stops moving.
AABB collision detection decides which face you hit — top/bottom flips vertical velocity, sides flip horizontal. The ball's speed magnitude is always preserved.
Where the ball strikes the paddle sets its exit angle. Dead center sends it straight up; the edges carve sharp diagonals — so aim with intent.
Every destroyed brick is worth 10 points. Clear all 32 for the perfect 320 and win. Lose the ball three times and the cabinet goes dark.
Launch at 45°, never straight up. One collision per frame prevents the ball getting stuck in a brick. The paddle is clamped to the walls and can't be driven off‑screen.
Fully touch‑driven on phones and tablets — drag your finger to steer. The canvas scales to fit portrait or landscape at 320px+ while holding a steady 60 FPS.