Explorer’s Lab › STARFIRE '79 › Build log
Build log
Initial build and playtest iterations of STARFIRE '79
Built the Blender-scripted 3D table, 480 Hz physics engine, Three.js renderer, Web Audio SFX/music, lights-out power-on sequence, and Game Over review across four days of playtest-driven fixes (23–26 Nov 2026).
Goal
Build a classic 1970s/80s 3D arcade pinball game for the browser with tactile flipper aiming/cradling, analog spring ball release, brass plumb-bob tilt, and Blender-generated 3D hardware.
What was done
- Shared table spec (
src/table/tableSpec.json): Single metric coordinate source of truth (0.54 m × 1.08 m,27 mmsteel ball,6.5°slope) read by Blender, the physics engine, and Three.js artwork. - Blender 5.2.2 LTS asset script (
blender/build_assets.py): Headlessly generates and exportspinball_table.glb(cabinet, brushed side rails, lockdown bar, upright backbox, drain apron, curved top arch, shooter divider, helical plunger spring & rod, tapered ivory-and-crimson flippers, three mushroom pop bumpers with movable striker rings, slingshots, posts, drop/standup banks, spinner, saucer cup, chrome pinball). - 480 Hz 2.5D physics (
src/physics/engine.ts): 8 substeps per 60 Hz frame, 3 collision iterations per substep, tapered capsule flippers (ω × rsurface velocity + velocity-dependent rubber restitution), analog spring plunger + one-way shooter gate, and a damped harmonic brass plumb-bob tilt pendulum. - Three.js renderer & lighting (
src/render/SceneManager.ts,src/render/PlayfieldArt.ts): Painted1024×20481979 cosmic sunburst playfield canvas, live1024×768backlit LED backglass canvas, custom dark arcade PMREM reflection environment, selectiveUnrealBloomPass, 4 camera presets (Classic,Dynamic,Overhead,Low), 21 top-arch marquee bulbs with a 2.65 s lights-out power-on choreography and ball-pass flash trail. - Audio & game loop (
src/audio/SoundEngine.ts,src/audio/MusicSequencer.ts,src/game/GameController.ts): Procedural solenoid/bumper/chime/rolling-ball Web Audio synthesis, multi-mode reactive music switcher (Groove,'79 Pulse,Off), classic rules (A-B-Clane change,2X–6Xmultiplier,S-T-A-Rdrop targets lighting Super Jets,F-I-R-Estandups lighting Kickback, Cosmic Saucer, 10 s Ball Save with HUD countdown), and a native<dialog>Game Over review screen with per-ball scores and run stats.
What broke / dead ends
- Whiteout glare & upside-down textures: First render used
RoomEnvironment+ high GI light intensity (0.85) + low bloom threshold (0.86), blinding the playfield. Both canvas textures were also vertically inverted because glTF expectsflipY = falsewhileTHREE.CanvasTexturedefaults toflipY = true. Fixed with a custom dark arcade PMREM map, physically scaled lights, higher bloom threshold, andflipY = false. - Stiff tilt bob: Initial pendulum stiffness (
omega2 = 95,damping = 2.6) never reached the1.0ring radius even across six rapid nudges. Retuned toomega2 = 28,damping = 1.15with swing-resonance amplification soSAFE → WARN 1 → DANGER! → TILT!triggers naturally. - Backward/upside-down right flipper: Exporting the right flipper with
208°rotation caused Three.jsEuler('XYZ')to decompose the glTF quaternion as(π, -28°, π); writing only.rotation.yleftx = π, z = π. Fixed by using.rotation.set(0, angle, 0)and identity parent rotation in Blender. - Slow-ball stall at right flipper pivot: Ending the
4.5 mminlane guide rail at the centre of the12.5 mmflipper pivot left an8 mmV-notch, compounded bymu = 0.26resting friction. Fixed by aligning both rail endpoints tangentially to the top rubber surface and dropping resting tangential friction to0.05. - Top-right V-pocket & inlane throat pinch:
upper_right_deflectorandoneWayGateformed an upward\ /trap; removing the deflector, reshapingsaucer_hoodinto a continuous downward-left slope, and running a 395-point drop audit also revealed a27.9 mmthroat pinch at both inlane entrances (for a27 mmball) and a fast-drag plunger velocity-zeroing bug. All fixed and re-audited to zero stuck spots. - Bloom, rolling audio, flipper gap & end-of-ball polish: Bloom dial-back initially overshot too matte (
strength: 0.09) before settling at0.16/threshold: 1.18with a satin-matte backglass; rolling ball audio went from inaudible (0.075bandpass white noise) to too loud (0.48pink noise) before settling at0.18/0.055; flipper length grew from80 mm(57.7 mm/2.14×gap) to85 mm(48.9 mm/1.81×gap); post-drain reload shrank from1.6 sto0.42 swith instant serve onSpace; Ball Save gained a visible countdown badge; and Game Over gained a delayed review screen so straySpacepresses no longer wiped scores.
Human interventions
Derek drove every playtest cycle across 23–26 November with screenshots and concrete feedback: choosing the tech stack, catching the inverted right flipper, catching both stuck-ball locations, tuning glow intensity twice, requesting audible then softer rolling ball audio, tightening the flipper gap, choosing the multi-mode music switcher, proposing the lights-out power-on sequence and top-arch ball trail (then bumping the trail up a notch), speeding up ball reload, and asking for Ball Save clarity and a Game Over review screen.
Verification
npm run build:assets(Blender 5.2.2 LTS) andnpm run build(tsc --noEmit && vite buildwithbase: './') passed cleanly after each change.- Deterministic Node/Vite physics scripts verified 395-point playfield drop sweep (zero stuck reachable points), 9-level plunger launch (
20%–100%), slow-roll & junction creep, center drain, and cradle-and-release. - Verified in desktop Chrome across multiple browser passes (gameplay, scoring, tilt progression, camera views, lighting, boot light show, music switcher, Ball Save countdown, and full 3-ball Game Over review).
- Not verified in this phase: real mobile hardware, Safari, or throttled networks.
Next steps
Import the built dist/ snapshot into Wacky Wolf Explorer (projects/starfire-79/) with a proper start screen, back link, media captures, and catalogue checks.