ARCADE//UNIT-88
CANVAS 400×600 RENDER 60 FPS ENGINE VANILLA / NO DEPS

Brick Breaker

Unit-88
SCORE000
HI000
LIVES●●●

Drag on screen · space to launch

01

The grid

Eight columns of 50 pixels, four rows of 20. Ten points a brick, 320 for a clean sweep, and a 50-point bonus if you clear it with all three lives still burning. Every brick is a live object in a flat array — no scene graph, no engine.

02

The paddle is a steering wheel

Clip the left lip and the ball peels away at 70° left. Catch it dead centre and it goes almost straight up. Paddle velocity adds english on top, so a sweeping flick bends the shot further.

03

One hit per frame

Movement is swept in sub-steps, so the ball can't tunnel. When several bricks overlap the ball, only the deepest penetration resolves — side or face is chosen by comparing axis overlap against travel direction, the brick dies, and the ball is pushed clear of the surface before the next step.

Field
400 × 600
Bricks
32 alive / dead
Ball
r 3 · v 3.44→3.90
Sub-steps
2 per frame
Paddle
60 × 10 · y 580
Paddle range
0 → 340
Lives
3 +1 per 100 pts
Loop
requestAnimationFrame
Input
touch · mouse · keys