Explorer’s Lab › Project dossiers › Midnight Circuit
Project dossier
Midnight Circuit
Dossier updated 27 Nov 2026.
Summary
An original browser pinball table with a green and brass cabinet, three balls, moving tapered flippers, pop bumpers, lower slingshots, a left target bank, a right return and a centre spinner jackpot. It uses a 360 Hz planar ball solver and a three.js WebGL 2 renderer. It is in development: the history includes repeated corrections driven by Derek’s playtesting, rather than a claim of simulation-grade mechanical accuracy.
This is Gen 1 on Wacky Wolf Explorer, an imported snapshot of an already iterated game. It is not the first version ever built. There was no existing projects/midnight-circuit/ entry to update or freeze.
Toolchain
- Codex. The current assistant identifies as GPT-6; its exact deployment version is not exposed. Exact model names for the earliest implementation turns are not available in the retained records and are not inferred.
- Plain JavaScript ES modules, HTML and CSS. No npm dependencies or bundling step in the source project: its
dist/is already the ready-to-serve runtime. - three.js r178, bundled locally with its MIT notice. WebGL 2 is required.
- A purpose-built fixed-step planar solver at 360 steps per second, rather than a general 3D rigid-body engine. Gravity on the slope, contact response, moving flipper surface velocity and powered bumper impulses are simulated in the table plane. There are no airborne shots or ramps.
- Blender for bevelled bumper hardware, with recoverable
.blendand Python generator in the source project. The Blender version used was not recorded. - Canvas-generated board art and labels, procedural three.js cabinet, rails and flippers, Web Audio synthesized machine effects.
- A scripted original 92 BPM synthesizer composition, rendered to WAV and encoded to AAC/M4A using macOS
afconvert. - Wacky Wolf Explorer’s existing Astro catalogue/build/check tools. No shared packages, site templates or other projects were edited for this import.
Credit ledger
| Area | Who did what | Autonomy |
|---|---|---|
| Brief and design direction | Derek requested classic 3D pinball, supplied repeated playtest feedback and screenshots, and approved changes. | human-made |
| Runtime implementation | Codex wrote the physics, renderer, controls, rules, interface, generated art, scripted model pipeline and audio synthesis. Exact models for the earliest turns were not retained. | ai-led |
| Gameplay revisions | Derek identified drain frequency, blocked inlanes, launch-channel returns, weak bumper and sling kicks, hinge traps and lighting issues. Codex investigated and implemented revisions; Derek reviewed playability. | ai-led |
| Centre spinner and progression | Codex (current identity GPT-6; exact deployment version unavailable) implemented a reachable centre spinner, lower target bank, aimed-shot multipliers, a 15-second jackpot, recent scores and achievement feedback after Derek approved the review proposals. | ai-led |
| Catalogue import and documentation | Codex (GPT-6, exact deployment version unavailable) prepared this static snapshot, entry, start/back-link integration, provenance ledger and Lab records. Derek specified the publishing procedure. | ai-led |
| Third-party renderer | three.js contributors supplied the renderer, loader and geometry utility under MIT. | human-made |
| Fonts | The Barlow Project Authors and IBM/Plex contributors supplied the fonts under SIL OFL 1.1. | human-made |
Overall classification: ai-led. Derek’s sustained playtesting and direction were material to the result. This was not autonomous development.
Where the source lives
- Source: a private Codex project on Derek’s machine, with its own git repository (not public). The local path and repository address are kept out of this public page; Derek has them.
- Imported source commit:
c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc, 27 November 2026. - Original hosted game: https://midnight-circuit-pinball.phillipsdj.chatgpt.site/ (its existing access policy is unchanged).
- Rebuild: run
node --testin the source folder, check the runtime, then copy itsdist/files into this project’sstatic/. The source has no compile step. Do not copy.git, tests, Blender source, audio generators, scratch reports or credentials into the playable bundle. - Catalogue-only adaptations in
static/index.html,static/style.cssandstatic/game.mjs: an accessible start screen with controls, a../back link, and input/simulation gating until Play. The power-up light sequence begins after starting. Preserve/reapply these when replacing the source snapshot. - The original brief is preserved verbatim in
BRIEF.md. Later instructions are summarized in the retrospective log.
Metrics and verification
- Imported playable runtime: 20 files, 1,533,580 bytes (1.46 MiB) before HTTP compression; this includes the optional 447,257-byte music file loaded after interaction. Catalogue media is counted separately in the hand-off.
- Source physics/input tests on import: 22 passed, run with
node --test. - Before import, this conversation recorded 812 passive-launch simulations of the spinner revision: no escaped balls or slow centre stalls; zero passive multiplier increases. This is a retained result from the development session, not a real-device performance benchmark.
- The prior development session also verified a complete browser game through saves, game over and restart. Import-specific site and viewport results are recorded in the current build log.
- No measured mid-range-phone frame rate, battery use, Safari compatibility, screen-reader usability study or network-throttled loading benchmark is available. Desktop browser viewport checks cannot establish these.
- High scores and recent games use browser-local storage. They do not sync to the original hosted game or another browser. There are no runtime AI calls, ads, analytics or trackers in the playable snapshot.
Assets and licences
project.json contains a file-by-file provenance ledger for every shipped runtime file and catalogue image. Third-party notices remain in static/vendor/LICENSE and the two static/assets/*-OFL.txt files. The bumper mesh, music, lightning mark and original runtime are project-owned work included at Derek’s publication request; no additional public reuse licence is asserted. Board print, labels, rails, cabinet and most meshes are generated by code at runtime.
Limits and next steps
The solver trades full 3D ball behaviour for a small, controllable flat-table simulation. Further tuning should be based on human play sessions; passing shot tests proves reachability, not enjoyment. The spinner is a sensor-driven rotating blade with a small energy loss, not a rigid-body hinge simulation. The catalogue snapshot is intentionally separate from the source repository; future updates need an explicit import and build log to keep the provenance accurate.
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 |
|---|---|---|---|
static/art.mjs | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/assets/barlow-condensed-800.woff2 | https://github.com/jpt/barlow (Barlow Condensed 800 WOFF2 and its bundled OFL notice.) | The Barlow Project Authors | SIL Open Font License 1.1 |
static/assets/barlow-condensed-OFL.txt | https://github.com/jpt/barlow (Barlow Condensed 800 WOFF2 and its bundled OFL notice.) | The Barlow Project Authors | SIL Open Font License 1.1 |
static/assets/bumper.glb | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Blender export from assets-source/bumper.py and bumper.blend in the source repository. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/assets/ibm-plex-mono-500.woff2 | https://github.com/IBM/plex (IBM Plex Mono 500 WOFF2 and its bundled OFL notice.) | IBM Corp. and Plex contributors | SIL Open Font License 1.1 |
static/assets/ibm-plex-mono-OFL.txt | https://github.com/IBM/plex (IBM Plex Mono 500 WOFF2 and its bundled OFL notice.) | IBM Corp. and Plex contributors | SIL Open Font License 1.1 |
static/assets/mark.svg | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original lightning mark written as SVG for Midnight Circuit. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/assets/midnight-theme.m4a | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original 92 BPM synth composition rendered by assets-source/midnight-theme.mjs and encoded with macOS afconvert. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/flipper-input.mjs | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/game.mjs | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/index.html | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/physics.mjs | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/sound.mjs | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/style.css | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/table-view.mjs | Source commit c0ccc704f4ed1eeb1c9f55514d50b9fe01ff5cbc; Original browser runtime from the source dist/ snapshot; index.html, style.css and game.mjs have catalogue-only start/back-link adaptations. | Codex; Derek supplied the brief and playtest direction. Earlier model versions were not recorded. | Project-owned; included for publication at Derek’s request. No separate public reuse licence is granted here. |
static/vendor/LICENSE | https://github.com/mrdoob/three.js/tree/r178 (Unmodified vendored r178 library; copyright and permission notice in static/vendor/LICENSE.) | three.js contributors | MIT |
static/vendor/examples/jsm/loaders/GLTFLoader.js | https://github.com/mrdoob/three.js/tree/r178 (Unmodified vendored r178 library; copyright and permission notice in static/vendor/LICENSE.) | three.js contributors | MIT |
static/vendor/examples/jsm/utils/BufferGeometryUtils.js | https://github.com/mrdoob/three.js/tree/r178 (Unmodified vendored r178 library; copyright and permission notice in static/vendor/LICENSE.) | three.js contributors | MIT |
static/vendor/three.core.min.js | https://github.com/mrdoob/three.js/tree/r178 (Unmodified vendored r178 library; copyright and permission notice in static/vendor/LICENSE.) | three.js contributors | MIT |
static/vendor/three.module.min.js | https://github.com/mrdoob/three.js/tree/r178 (Unmodified vendored r178 library; copyright and permission notice in static/vendor/LICENSE.) | three.js contributors | MIT |
media/hero.jpg | Unstaged screenshot of the imported game at BALL READY, 1280×720, captured through the Codex in-app browser on 27 November 2026. (No score, lamp or ball state was injected for this capture.) | Codex (GPT-6; exact deployment version not exposed), from the project renderer | Project-owned screenshot; third-party font and renderer notices remain bundled. |
media/phone.jpg | Unstaged screenshot of the imported game at BALL READY in a 375×812 desktop-browser viewport, captured on 27 November 2026. (Responsive layout example, not a capture from a physical phone. No game state was injected.) | Codex (GPT-6; exact deployment version not exposed), from the project renderer | Project-owned screenshot; bundled third-party notices retained. |
Build logs
- Earlier development — retrospective from the conversationWhat the retained conversation and source record establish about the table’s earlier iterations.
- Import Midnight Circuit into Wacky Wolf ExplorerImport the spinner-jackpot table as a static Gen 1, with catalogue controls, provenance and an honest development record.
- Review before merge, with two small fixesReviewed the Codex import branch per PUBLISHING.md §11, fixed broken formatting in the Lab notes and removed private source details from the public pages.