Cabinet №04 // 1 Player

BREAKOUT

Pwr
Play

CREDIT 01

400×600 · 8×4 bricks · AABB insert coin
Drag anywhere on the tube to steer · paddle edge = steep angle Sub-stepped collision · one brick per tick

Operator manual

HOW THE MACHINE
BEHAVES

  1. 01

    Launch

    The ball sits docked on the paddle. Tap the screen, click, or hit Space — it leaves on a diagonal (±2.8 / 2 normalized, jittered), never straight up.

  2. 02

    Steer

    Mouse, arrow keys, or thumb-drag on touch. Where you strike the ball decides the exit angle: centre is vertical, edges throw it out to ±62°.

  3. 03

    Break

    32 bricks, 10 points each, 320 maximum. Ball speed climbs from 3.43 toward 4.00 px/frame as the wall thins — magnitude is always renormalized.

  4. 04

    Survive

    Three balls. Falling past the paddle costs one, but the board does not reset — chip away at the back rows and clear it for the win screen.

Build sheet

Field
400×600 logical, DPR-scaled
Grid
8×4 @ 50×20, y-offset 54 (HUD)
Paddle
60×10 @ y580, travel 0→340
Ball
r3, |v| 3.43→4.00 px/frame
Detect
circle–rect AABB overlap
Resolve
least-penetration axis
Tunnelling
split into ≤2px sub-steps
Per tick
closest brick only
Loop
requestAnimationFrame, dt-clamped
Audio
WebAudio, zero assets
Storage
best score persisted