CAN-01 · 400×600 · VANILLA CANVAS · NO ENGINE

BREAKOUT

Thirty-two bricks. Three lives. One ball that never slows down — only gets flatter.

SCORE0000
BRICKS32
SPEED3.44
FPS60
BEST0000
READY
DRAG THE PADDLE · TAP TO LAUNCH

OPERATOR'S MANUAL

Everything below is drawn with the Canvas API. No physics engine, no libraries — just an explicit AABB test, a side-resolution test, and a push-out that keeps the ball from ever being swallowed by a brick.

01
The ball docks on the paddle. Tap, click or press SPACE to launch it at 45° — the side alternates every life, so it is never straight up.
02
Hit the ball with the paddle tip and it leaves at up to 60° off vertical. Hit the centre and it goes back where it came from. Angle is the whole control scheme.
03
Brick impacts compare horizontal and vertical penetration: the smaller overlap decides the axis, so top hits flip dy and side hits flip dx — never both.
04
If two bricks overlap the ball in one frame, only the closest is resolved. The ball is pushed out of it and the frame flag blocks a second impact.
05
Speed ramps 3.44 → 4.00 px/frame as the field clears. Same magnitude every axis — the vector is renormalised, never stretched.