Explorer’s Lab › Lunar Barrage › Build log
Build log
Initial vertical-arcade build from single prompt
Autonomously researched classic late-1970s vertical arcade timing and built the playable 224×256 framebuffer engine, WebGL2 CRT shader, procedural Web Audio synthesizer, responsive cabinet UI, and unit tests from Derek's initial brief.
Goal
Build a web-based 1980s-style vertical arcade shooter from a single brief, grounded in historical arcade hardware research, using modern web technology, and packaged for relative-path deployment to any VPS subdirectory.
What was done
- Researched late-1970s vertical CRT cabinet architecture and timing: 224×256 1-bit monochrome framebuffer, physical colour-band overlays, Pepper’s Ghost illuminated lunar mirror backdrop, 1-unit-per-frame rack movement (ripple march, natural speed-up curve, and last-unit rightward speed asymmetry), deterministic 15-shot bonus ship table (300 pts on shot 23 and every 15th shot thereafter), fixed column firing tables, score-based reload curve (
48 → 16 → 11 → 8 → 7frames), pixel-exact shield and ground-line erosion, and analog 4-note marching bassline vs. LFO+VCO bonus ship warble. - Scaffolded a strict TypeScript 5.8 + Vite 6 (
base: './') + Vitest 3 project with zero third-party runtime dependencies. - Implemented the pure fixed-60 Hz simulation engine, 224×256 1-bit framebuffer and colour mapper, WebGL2 GLSL ES 3.00 CRT shader (with Canvas 2D fallback), zero-asset Web Audio API synthesizer, unified Keyboard/Gamepad/Touch input controller, and responsive cabinet UI using CSS cascade layers,
@containerqueries,100dvh, and native<dialog closedby="any">. - Wrote 6 Vitest unit tests verifying the core timing and erosion mechanics, built
dist/(< 20 KB gzipped), and verified live gameplay under a simulated subdirectory path in Chrome.
What broke / dead ends
- Strict TypeScript error (
TS2367):src/input/controller.tscheckedcode === 'Enter'inside anifbranch already narrowed to arrow keys and'Space'. Fixed by removing the unreachable check. - Local preview port conflict (
EADDRINUSE): Port4173was already bound on the machine; switched the local preview test to port4288. - Minor
<select>option wrapping: Live browser inspection caught two-line wrapping on"3 Ships (Arcade Default)"inside the two-column DIP Switches modal grid. - Original-work issue (caught later in review): Because the brief explicitly requested an authentic recreation of a famous arcade game, the first build reused trademarked naming, manufacturer overlay labels, classic attract-screen text, and 1978 sprite bitmaps—making it ineligible for public catalogue release until rebranded in the next session.
Human interventions
- None during this initial build beyond the single opening prompt (saved verbatim in
BRIEF.md).
Verification
npm test: 6/6 Vitest unit tests passed.npm run build:tsc --noEmitand Vite production build succeeded with relative./assets/...paths.- Live headless browser verification under a simulated subdirectory path confirmed WebGL2 CRT rendering, zero console/network errors, movement, firing, shield erosion, and DIP Switches dialog behaviour.
- Not verified: Real mobile devices, desktop Safari, physical gamepads, and screen-reader software.
Next steps
- Rebrand all visible names, sprites, attract screen, and colour-overlay wording into an original game before publishing to Wacky Wolf Explorer.