Explorer’s Lab › Project dossiers › Lunar Barrage

Project dossier

Lunar Barrage

Status
Released · Gen 1
Platforms
Play in browser
Built with
Antigravity (Gemini 4 Neon), TypeScript 5.8 & Vite 6, WebGL2 GLSL ES 3.00 CRT shader, Web Audio API procedural synthesizer, Vitest 3
Frozen generations
None yet
Build sessions logged
3 (1 Autonomous, 1 AI-led, 1 AI-assisted)
Assets
8 logged below

▶ Play Lunar Barrage

Dossier updated 28 Nov 2026.

Summary

Lunar Barrage is an original retro arcade fixed-shooter built in the spirit of late-1970s and 1980s vertical CRT cabinets. Under the hood, it simulates a genuine 224×256 1-bit monochrome arcade framebuffer mapped through selectable colour-band and phosphor presets (Red / white / green bands, Multi-band colour spectrum, Monochrome white phosphor, and Green P31 phosphor) and presented through a custom WebGL2 GLSL ES 3.00 CRT shader with an optional Pepper’s Ghost starry lunar backdrop.

While its title, attract screen, colour-preset naming, and every sprite silhouette (Dart Scouts, Visor Sentinels, Siege Crawlers, Command Cruiser, Lunar Railgun, crenelated Blast Bastions, projectiles, and bursts) are 100% original designs, its gameplay preserves deep historical arcade timing research: 1-unit-per-frame rack stepping (producing the ripple march, hyperbolic acceleration curve, and 3 px right / 2 px left last-unit speed asymmetry), a deterministic 15-shot Command Cruiser bonus table (guaranteeing 300 points on shot 23 and every 15th shot thereafter), three distinct hostile shot types (Tracker, Spike, and Helix) driven by fixed column tables and a score-based reload curve (48 → 16 → 11 → 8 → 7 frames), pixel-exact bunker and lunar baseline erosion, and wave starting heights. All audio is synthesized live via the Web Audio API with zero external assets.

This is Gen 1 on Wacky Wolf Explorer, imported as a built static snapshot after rebranding the initial prototype into an original work per PUBLISHING.md §11.

Toolchain

  • AI coding environment: Google Antigravity (Gemini 4 Neon), built and rebranded on 28 November 2026.
  • Language & bundler: Strict TypeScript 5.8 and Vite 6 (base: './' for subdirectory portability) with zero third-party runtime dependencies (vitest 3 used for unit testing in the source project only).
  • Graphics pipeline: Pure TypeScript 224×256 1-bit framebuffer (Uint8Array) → colour-band / phosphor RGBA mapper → WebGL2 GLSL ES 3.00 full-screen triangle shader (barrel distortion, 256-row scanlines, aperture grille, multi-tap phosphor bloom, 1-frame phosphor persistence, and procedural Pepper’s Ghost lunar ridge & starfield backdrop), with automatic Canvas 2D pixel-perfect fallback.
  • Audio pipeline: Procedural Web Audio API synthesizer generating the discrete analog-style 4-note marching bassline, 5.5 Hz LFO + VCO Command Cruiser warble, LFSR-style retro noise explosions, railgun discharge, raider bursts, coin chime, and bonus-turret fanfare.
  • UI & accessibility: Native <dialog closedby="any"> (with Safari closedBy bounding-rect fallback), CSS cascade layers (@layer), native CSS nesting, @container queries, 100dvh dynamic viewport sizing, Keyboard + Gamepad API + pointer/touch arcade deck, and polite ARIA live announcements.

Credit ledger

Area Who did what Autonomy
Original brief & rebrand direction Derek wrote the initial single prompt, requested a local preview server, and then directed the full rebrand to original IP (name, sprites, attract screen, and colour-overlay wording) for Wacky Wolf Explorer publication. human-made
Initial arcade research, engine, CRT shader, Web Audio synth & tests Antigravity (Gemini 4 Neon) autonomously researched late-70s vertical cabinet timing, implemented the 224×256 framebuffer engine, WebGL2 CRT shader, procedural Web Audio synth, cabinet UI, and 6 Vitest unit tests from the initial brief alone. autonomous
Original rebrand (Lunar Barrage) & catalogue import Following Derek’s original-work feedback, Antigravity (Gemini 4 Neon) created the Lunar Barrage title and slug, redrew every pixel-art sprite and favicon from scratch, designed an original Command Cruiser patrol attract screen, renamed colour overlays by colour only, stripped all trademarked terms and local paths, captured screenshots, and authored the catalogue metadata and Lab notes. ai-led

Overall classification: ai-led. The initial build ran autonomously from a single brief; Derek directed the subsequent rebrand into original IP for Wacky Wolf Explorer.

Where the source lives

  • Source folder: a local Antigravity project folder on Derek’s Mac (not a git repository). The local path is intentionally kept out of this public page; Derek has it.
  • Imported snapshot version: 28 November 2026 (rebranded Lunar Barrage build, including the ../ back link and window.wolfWorld telemetry contract).
  • Rebuild procedure: In the source project folder, run npm test && npm run build, then copy dist/ into projects/lunar-barrage/static/. Do not copy src/, tests/, or node_modules/ into static/.
  • Original brief: Saved verbatim in BRIEF.md.

Metrics and verification

  • Playable runtime (static/): 4 files, ~67.0 KB uncompressed (~19.6 KB gzipped) — index.html (8.24 KB), assets/index-fV4sLYfN.js (48.19 KB), assets/index-BcP_-rnJ.css (10.20 KB), and favicon.svg (336 B). Zero external runtime libraries, fonts, CDN scripts, ads, trackers, or runtime AI calls.
  • Unit tests (source): 6/6 Vitest tests passing (tests/engine.test.ts), verifying the 23rd-shot / 15-shot Command Cruiser 300-point bonus cycle, row point tiers (30/20/10), score-to-reload thresholds, railgun movement and pixel-exact Blast Bastion erosion, single-unit-remaining speed asymmetry (3 px right vs 2 px left), and 224×256 RGBA framebuffer output.
  • Site & browser checks: Verified via npm run build, npm run check (manifest validation, site crawl, and Playwright lunar-barrage/play full contract smoke test), and preview inspection at desktop (1280×800) and phone (375×812) viewports.
  • Not verified: Real physical mobile phones (iOS Safari / Android Chrome touch feel and Web Audio unlock latency), desktop Safari (WebGL2 shader and closedBy fallback), physical USB/Bluetooth gamepad hardware, and screen-reader traversal with VoiceOver/NVDA.

Assets and licences

Every shipped file in static/ and media/ is listed in project.json → assets with source, creator, and licence. All sprites, bitmap font glyphs, Pepper’s Ghost lunar backdrop visuals, and sound effects are generated procedurally in code at runtime with zero external assets.

Asset provenance

Every asset that isn't generated at runtime: how it was made, by whom, and under what licence.

FileHow it was madeMade byLicence
static/index.htmlBuilt from the local Antigravity source project (Lunar Barrage snapshot 2026-11-28) via Vite (base: './').Antigravity (Gemini 4 Neon), with brief and rebrand direction from Derek.Project-owned; included for Wacky Wolf Explorer publication at Derek's request.
static/favicon.svgCopied from the local Antigravity source project's public/favicon.svg (Lunar Barrage snapshot 2026-11-28).Antigravity (Gemini 4 Neon), original 12×12 pixel-art Dart Scout SVG.Project-owned; included for Wacky Wolf Explorer publication at Derek's request.
static/assets/index-BcP_-rnJ.cssBuilt from the local Antigravity source project's src/ui/styles.css (Lunar Barrage snapshot 2026-11-28) via Vite.Antigravity (Gemini 4 Neon).Project-owned; included for Wacky Wolf Explorer publication at Derek's request.
static/assets/index-fV4sLYfN.jsBundled from the local Antigravity source project's src/ (Lunar Barrage snapshot 2026-11-28) via Vite with zero external runtime dependencies.Antigravity (Gemini 4 Neon).Project-owned; included for Wacky Wolf Explorer publication at Derek's request.
media/hero.jpgUnstaged 1280×720 desktop screenshot of static/index.html during active Red / white / green bands gameplay, captured 28 November 2026.Antigravity (Gemini 4 Neon) via Chrome headless Playwright capture from the project renderer.Project-owned screenshot.
media/attract.jpgUnstaged 1280×720 desktop screenshot of static/index.html on the original Lunar Barrage attract screen (Command Cruiser patrol and Hostile Targets roster), captured 28 November 2026.Antigravity (Gemini 4 Neon) via Chrome headless Playwright capture from the project renderer.Project-owned screenshot.
media/spectrum.jpgUnstaged 1280×720 desktop screenshot of static/index.html with the Multi-band colour spectrum overlay enabled, captured 28 November 2026.Antigravity (Gemini 4 Neon) via Chrome headless Playwright capture from the project renderer.Project-owned screenshot.
media/phone.jpgUnstaged 375×812 phone-viewport screenshot of static/index.html during active gameplay showing the portrait CRT bezel and touch deck, captured 28 November 2026. (Responsive layout preview in a 375×812 Chrome viewport, not a capture from a physical phone.)Antigravity (Gemini 4 Neon) via Chrome headless Playwright capture from the project renderer.Project-owned screenshot.

Build logs

  • Initial vertical-arcade build from single prompt
    28 Nov 2026 · Antigravity (Gemini 4 Neon) · Autonomous
    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.
  • Original rebrand to Lunar Barrage and Wacky Wolf Explorer import
    28 Nov 2026 · Antigravity (Gemini 4 Neon) · AI-led
    Rebranded the game from its initial trademarked prototype into Lunar Barrage with 100% original sprites, attract screen, and colour-band naming, then imported and verified the static Gen 1 build on a fresh branch.
  • Review before merge
    28 Nov 2026 · Claude Code (Claude Opus 5.5) · AI-assisted
    Reviewed the rebranded import per PUBLISHING.md §11 and added it to the Arcade invaders series; no changes were needed to the game or its notes.