# BLUEPRINT.md — Bronx Arcade Solo Game Studio SOP > **Purpose:** Master specification for scaffolding, building, testing, and shipping zero-install Godot 4 HTML5 browser games for **Bronx Arcade**. Feed this file to a CLI coding agent in an empty directory to initialize a new game repository. --- ## 1. Studio Philosophy & Non-Negotiables - **Target Platform:** Web Browser (HTML5 / WebGL2), desktop and mobile friendly. - **Zero Friction:** No account, no install, playable within 5 seconds of page load. Local progress/high scores saved via browser `ConfigFile` / `localStorage`. - **Engine Standard:** Godot 4.x using **strictly typed GDScript** (`var speed: float = 200.0`, explicit return types `-> void`). Never use deprecated Godot 3 syntax. - **Asset Discipline:** Never dump unprocessed AI images or heavy WAV files into `src/`. All web assets must be palette-locked, grid-aligned, and compressed. --- ## 2. Standard Repository Anatomy Initialize every new game repo with this exact directory structure: ```text game-slug/ ├── AGENTS.md # Entry instructions & guardrails for CLI coding agents ├── README.md # Quickstart, controls, and build commands ├── .gitignore # Ignores .godot/, exports/, assets_raw/, OS temp files ├── docs/ │ ├── BLUEPRINT.md # Copy of this studio SOP │ ├── GDD.md # Game Design & Art Bible (locked before coding) │ └── CHANGELOG.md # Public patch notes per milestone ├── skills/ │ ├── gdscript-coder.md # Rules for modular nodes, signals, and typed GDScript │ ├── art-pipeline.md # Palette quantization, sprite sheet slicing & WebP rules │ ├── qa-browser-test.md # Headless scene checks & HTML5 export verification │ └── marketing-launch.md # Promo video hooks, splash page copy & social posts ├── assets_raw/ # Unprocessed AI outputs & raw audio (excluded from build) ├── assets_game/ # Engine-ready WebP sprites, tilesets, fonts & OGG audio ├── src/ # Godot 4 project root (project.godot, scenes/, scripts/, data/) ├── exports/ │ └── web/ # Compiled HTML5 output (index.html, .wasm, .pck, .js) └── marketing/ # 15-30s gameplay captures, GIFs, thumbnails & launch copy ``` --- ## 3. AI Agent Guardrails (`AGENTS.md` Rules) Every AI agent operating inside this repository must obey these rules: 1. **Clean Git Tree Required:** Never run automated multi-file edits on an uncommitted working tree. 2. **Protect `project.godot`:** Do not overwrite input maps, display scaling, or autoload singletons without explicit approval. 3. **Modular Components:** Build small, reusable scripts (e.g., `HealthComponent`, `HitboxComponent`, `ScreenShakeCamera`) connected via Godot signals rather than monolithic manager scripts. 4. **Data-Driven Content:** Store enemy stats, wave spawns, and upgrade curves in external `.json` or Godot `.tres` resource files under `src/data/`, never hardcoded inside gameplay loops. 5. **Web Export Safety:** Avoid multithreaded features requiring `SharedArrayBuffer` unless explicitly configured; keep total HTML5 export size under **15 MB**. --- ## 4. Assembly Line Stages & Milestones ### Stage 1: Creative Office (`docs/GDD.md`) - [ ] Define the **10-Second Hook** (core loop, controls, win/lose conditions). - [ ] Lock the **Art Bible** (fixed color palette hex codes, base resolution, pixel grid size, UI font). - [ ] Write the **Scope & Cut List** (what ships in v1.0 vs. what gets cut). ### Stage 2: Art Department (`assets_raw/` → `assets_game/`) - [ ] Generate concept sprites, tilesets, and SFX into `assets_raw/` using Art Bible constraints. - [ ] Quantize colors to the locked palette and clean stray alpha pixels. - [ ] Export sprite sheets and compress final textures to `.webp` and audio to `.ogg` inside `assets_game/`. ### Stage 3: Engineering Floor (`src/`) - [ ] **Milestone 0 (Greybox):** Core movement, physics, and controls playable with placeholder shapes. Commit to Git. - [ ] **Milestone 1 (Vertical Slice):** Integrate `assets_game/` sprites, SFX, hit-stop/screen shake, and HUD into one complete 60-second loop. Commit to Git. - [ ] **Milestone 2 (Systems & Content):** Populate waves, levels, upgrades, and local high-score saving from `src/data/`. Commit to Git. ### Stage 4: Quality Assurance (`exports/web/`) - [ ] **Headless Check:** Run Godot CLI to verify zero script parse errors or `null instance` warnings. - [ ] **HTML5 Export:** Compile release build to `exports/web/` and verify total bundle size. - [ ] **30-Second Browser Test:** Launch in an incognito browser tab. Verify controls, goal clarity, audio playback, and 60 FPS performance within 30 seconds. ### Stage 5: Publishing & Marketing Desk (`marketing/`) - [ ] Capture a 15–30 second gameplay trailer and looping GIF in `marketing/`. - [ ] Deploy `exports/web/` to **Bronx Arcade** and feature the game on **The Wall**. - [ ] Publish the dedicated game page with controls, strategy tips, screenshots, and `docs/CHANGELOG.md`. - [ ] Generate and post launch announcements tailored to the game's core hook.