Explorer’s Lab › Project dossiers › Orbit Lounge
Project dossier
Orbit Lounge
Dossier updated 23 Nov 2026.
Summary
Orbit Lounge is a classic flat pinball table for the browser, with an original 1960s space-age lounge design. The project’s main bet is on physics that feel right: a purpose-built, deterministic pinball simulation rather than a general physics engine, backed by automated behaviour tests.
Toolchain
| Runtime | three.js r187 WebGPURenderer (WebGL2 fallback), TSL bloom pass, RoomEnvironment reflections |
| Physics | Custom TypeScript simulation, 1,200 Hz fixed steps, no dependencies |
| Tests | npm test --workspace projects/orbit-lounge (Node runs the TypeScript directly); site smoke test with the full contract |
| Art | Blender 5.2.2 by script (art/blender/build_parts.py): bumpers, flippers, posts, targets, saucer, plunger, cabinet, backbox, legs, built to the layout’s own dimensions. Canvas-painted playfield, backglass and apron cards. Walls and slingshots are generated from the layout in code |
| Models and tools | Claude Code (Claude Opus 5.5) |
Credit ledger
| Area | Who | Autonomy |
|---|---|---|
| Brief: classic flat table, retro look, physics feel, no ramps | Derek | Human-made |
| First play-test: flipper feel “about right”, found the stuck ball | Derek | Human-made |
| Second play-test: found the ball resting on a lowered flipper | Derek | Human-made |
| Name, theme, table layout, rules | Claude Code (Claude Opus 5.5) | AI-led |
| Physics engine and tests | Claude Code (Claude Opus 5.5) | AI-led |
| 3D renderer, artwork, sound, controls, display | Claude Code (Claude Opus 5.5) | AI-led |
| Blender parts, pause menu, settings, high-score table | Claude Code (Claude Opus 5.5) | AI-led |
Physics test results (first session)
| Test | Result |
|---|---|
| Ball rests on the plunger | ✓ |
| Full plunge goes round the top arc (peak y ≈ 1.05 m) | ✓ |
| Very soft plunge rolls back down the shooter lane | ✓ |
| Cradled ball, flipped mid-flipper, reaches the top (≈ 3.7 m/s) | ✓ after tuning (was 2.7 m/s) |
| Flipper stroke time | ✓ 25 ms |
| Ball between the flippers drains | ✓ |
| 2,000 fast random shots: 0 escape the cabinet | ✓ |
| Pop bumper exit speed ≈ 2.2 m/s | ✓ |
| Flying saucer captures and ejects | ✓ |
| Deterministic (same inputs → identical result) | ✓ |
| Added after the first play-test: about 700-point drop grid, no stuck balls | ✓ after fixes (was 75 stuck) |
| Ball behind dropped moons rolls back out | ✓ |
| Outlane entrances wider than the ball (32 mm) | ✓ (was 25 mm) |
| Added after the second play-test: a ball on a lowered flipper always rolls off | ✓ after fix (was resting at the flipper base) |
| Cradling on a raised flipper still works | ✓ |
Metrics
| Gen 1 (in development) | |
|---|---|
| JavaScript (gzipped) | ~255 KB (mostly three.js) |
| Asset files | parts.glb (0.5 MB, Blender-generated) + the catalogue hero screenshot |
| Total download | ~1.5 MB |
| Physics rate | 1,200 Hz; about 60 fps rendering in headless Chrome (WebGPU) |
Asset provenance
Every asset that isn't generated at runtime: how it was made, by whom, and under what licence.
| File | How it was made | Made by | Licence |
|---|---|---|---|
media/hero.jpg | Screenshot of the game rendered by three.js in headless Chrome, captured with Playwright and converted to JPEG with macOS sips (staged frame: ball position, lit inserts and a bumper flash set through ?debug before capture) | Claude Code (Claude Opus 5.5) | Project-owned |
public/models/parts.glb | Generated by Blender 5.2.2 running art/blender/build_parts.py, with sizes read from art/parts-spec.json (exported from src/table/table.ts by art/export-spec.ts) | Claude Code (Claude Opus 5.5) | Project-owned |
Build logs
- Ball now sits on the plunger tipDerek spotted the ball floating above the plunger. The drawn plunger tip was 8.5 mm behind the physics plunger's face; it now sits on it, using one shared constant.
- Three camera views (Classic, Player, Dynamic)Derek asked for view options. The original view is now Classic, and there are two new ones: Player (low, at the cabinet) and Dynamic (a closer camera that follows the ball). Switch with C, the pause menu or Settings.
- Gate clack soundThe launch-lane gate flap now clacks each time it knocks a stop: a slap as the ball throws it open, then fading clacks as it settles.
- Animated launch-lane gateThe one-way gate at the top of the shooter lane was a fixed chrome bar. It's now a hinged flap that the launched ball flips open; it swings back and flaps against its stop before settling.
- On-screen toolbar (pause, settings, view, music, effects)Derek pointed out that nothing on the play screen showed the C key or any options. Added a toolbar with pause, settings, view, music and sound-effects buttons, and a separate sound-effects switch.
- Fix the title card getting stuck over a new gameFrom the second game on, the title card could come back during the power-up and the new game started hidden behind it, with Insert coin doing nothing. Fixed and tested over three games in a row.
- Making Shoot Again and extra balls understandableDerek couldn't tell how the Shoot Again light worked. Added a ball-save countdown on the display, clearer extra-ball messages, rewritten apron cards and a How to play page.
- Generative space-age lounge musicAdded original background music synthesised live in the browser: a bossa-nova lounge band (vibraphone, upright bass, brushes and a theremin) that varies as it plays, adapts to the game, plays stings for big moments and ducks under the sound effects.
- The board powers up when you insert a coinThe table now starts switched off. Insert coin plays a short power-up: coin clink, relay clunk, flickering lamps, a wave of light up the playfield, a double flash, then the game and music begin. It powers down again after the game.
- Quieter ball rollDerek liked the rolling-ball sound but found it a bit too loud, so its peak level was lowered from 0.22 to 0.13 (about 4.5 dB quieter).
- X-Ray switched off for playersAt Derek's request, the Tech X-Ray (physics overlay and live tuning sliders) is no longer offered to players. The code stays, and ?xray in the URL opens it for developers and testers.
- Why the ball sat on a lowered flipperDerek's second play-test found the ball resting on the base of the lowered left flipper. The cause was sliding friction wrongly applied to a resting, rolling ball. Friction now only acts in impacts, and three tests guard against it.
- Blender-modelled parts, pause menu, settings and high scoresReplaced the code-built parts with models made by a Blender script built to the physics' own dimensions, and added a pause menu, saved settings (volume, mute, left-handed layout) and a classic eight-entry high-score table with initials.
- The first playable tableDesigned 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.
- Fixing a stuck ball (and finding three more)Derek's first play-test found the ball wedged at the top of the right outlane. A new drop-grid test found 75 stuck positions in total, from four causes. All are fixed, with three new regression tests.