Draft preview: not yet live.

Explorer’s Lab › Orbit Lounge › Build log

Build log

The first playable table

Designed an original retro table, wrote a purpose-built pinball physics engine with ten behaviour tests, and built a playable 3D WebGPU version with rules, sound, touch controls and live physics tuning.

Date
23 Nov 2026
Tool
Claude Code
Model
Claude Opus 5.5
Human
Derek
Autonomy
AI-led
Generation
Gen 1 (in development)

Goal

A classic pinball game for the site with physics that feel right: flippers, nudge/tilt and plunger. Version 1 is a flat table with no ramps and a retro look of its own.

Human interventions

Derek set the brief: classic, a retro theme (no Wacky Wolf), no ramps for v1, and that Claude builds it. Claude chose the name, theme, layout and rules.

What was done

  1. Physics first (src/physics/physics.ts):
    • real-scale, 1,200 Hz fixed steps;
    • per-material restitution and friction;
    • kinematic solenoid flippers that pass on ω × r;
    • a moving-surface plunger, one-way gate, kicking bumpers and slingshots;
    • sensors, a capturing saucer, nudge and drain;
    • deterministic throughout.
  2. One layout for everything (src/table/table.ts): every wall, post and target is defined once, and both the physics and the 3D scene are built from it.
  3. Ten physics tests run in Node. Eight passed first time; two needed fixing (below).
  4. Rules: O·R·B lanes with lane change, skill shot, multiplier, moons → kickback → extra ball, standup stars → double saucer, orbit loop and spinner, ball save, tilt, bonus count, local high score.
  5. 3D scene:
    • WebGPU, with the playfield and backglass painted on canvas from the layout;
    • extruded flippers and slingshots, bumpers that light when hit, drop targets that sink;
    • a spinning spinner, chrome reflections and a bloom pass on the lights;
    • a camera that fits the whole cabinet to any screen shape.
  6. The rest:
    • synthesised sound (thunks, pops, chimes, knocker, a ball-roll rumble that follows speed);
    • keyboard, touch and gamepad controls;
    • an amber dot-matrix display;
    • the X-Ray with collision overlay, velocity and live tuning sliders.

What broke / dead ends

  • Test design: the cradle test first flipped from the base of the flipper, which is weak on a real table too. Rewritten to let the ball roll two-thirds of the way down the flipper before flipping.
  • Feel: shots from mid-flipper only reached about 2.7 m/s. Flipper peak speed was raised from 38 to 46 rad/s, giving about 3.7 m/s and a 25 ms stroke.
  • The “soft” plunge test was actually strong enough to clear the gate (realistic). Made the test truly soft.
  • First render: a spotlight near the player and a low bloom threshold blew the bottom of the table out to white. Switched to an even directional light, a higher bloom threshold and satin metal.
  • The flipper outline had swapped tangent angles. Fixed.
  • Verification trap: screenshots from the hidden browser pane were stale because the page stops rendering when hidden. Visual checks moved to headless Chrome, which keeps rendering.

Verification

  • npm test --workspace projects/orbit-lounge: 10/10 pass.
  • npm run check -- --project orbit-lounge: full contract test passes (loads, renders, the plunger launches the ball).
  • Headless Chrome: WebGPU backend at about 60 fps; X-Ray overlay aligned with the geometry; phone portrait framing checked.
  • Not verified: playing a full game by hand, real phones and touch feel, Safari/Firefox, and audio levels.

Next steps

Hand-tuning by playing, a Blender art pass, ball spin, multiball, pause and settings.