cntrl/docs/LEVEL_DESIGN_REVIEW.md

367 lines
30 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# FBC: NIGHT SHIFT — Level Design Review: 2D Map vs. Game Client
**Date:** 2026-11-24
**Scope:** Floor 01 blockout, whole-house flow map, level-related design docs, and the runtime assets they depend on.
**Method:** Static cross-review of the authored 2D plans (`docs/maps/*.svg`), the level data and systems in `src/`, the design docs in `docs/`, and a literal code-path ↔ filesystem asset audit. Every numeric claim below was checked against source; no files were modified by the review.
---
## 1. Executive summary
**Verdict:** The Floor 01 *geometry* is in excellent sync with its 2D plan — all 10 room bounds, all dimensions, and most of the intended route match to the metre. The problems are not in the room table; they are in **connectivity, authored content, and scope**. The single most important finding is that **the designed route step 3 → 4 (Projector Room → Office Suite) is physically blocked in the client by an unbroken wall**, even though the map draws an arrow there and the client draws a corridor slab. Beyond that, the client implements **one of seven promised floors**, **two buff-only rituals where the map promises a Projector OoP that grants a skill**, and **no bosses, no motel shop, no clearance gating, and no cross-room pathfinding**.
| Area | Health | Notes |
|---|---|---|
| Room bounds & dimensions (map ↔ client) | ✅ Pass | 10/10 rooms exact match, including side rooms |
| Intended route connectivity | ❌ Fail | 1 of 5 route legs blocked; 2 dead-end stubs; 3 passable links lack floor slabs |
| Walls / collision data | ⚠️ Partial | 67 wall rects; key and hazard door are non-colliding |
| OoP / ritual placement | ❌ Fail | Projector ritual absent; ritual anchors in Plaza, not Offices or Projector |
| 7-floor run flow | ❌ Fail | 1 floor implemented, reused 6× with a corruption bump |
| Enemy / boss roster | ❌ Fail | 4 types (1 undocumented) of 8+ promised; 0 of 7 bosses |
| Asset references (broken links) | ✅ Pass | 0 missing files across 40 referenced paths |
| Asset completeness | ⚠️ Partial | 9 orphan assets; audio/env/fonts dirs empty despite doc promises |
| Doc consistency | ❌ Fail | 4-vs-7 floors, camera values, arena size, stale status docs |
**Finding count:** 2 Critical, 6 High, 7 Medium, 3 Low (18 total).
### 1.1 Implementation status (2026-11-24)
The findings above are the audit baseline. Fixes have since landed in four phases:
| Phase | Findings | Status | Evidence |
|---|---|---|---|
| 1 — Connectivity | C-01, M-01 | **Fixed** | `floor.cpp`: Projector north gap `{{116,132}}`, 3 corridor slabs added, south stub sealed; BFS verifies all 8 route links |
| 2 — OoP skill | C-02, M-02, L-01 | **Fixed** | `ritual.*`: `RitualType::Projector` at world (49,−2), 20 s briefing reel, claimable once, replaceable; `weapons.*`: `WeaponType::Projector`; `game.cpp`: ritual completion grants the skill; `presenter.cpp`/`ui.cpp`: anchor, marker and strings |
| 3 — Clearance & side rooms | H-04, L-03 | **Fixed** | `floor.*`: 3 gated door walls + `DoorId`; `game.*`: `clearance`, side-room rewards, reset/floor-jump handling; `presenter.cpp`: locked/open door visuals and A–D labels; `ui.cpp`: real clearance stamp + reward banner |
| 4 — Doc hygiene | M-07, L-02 | **Fixed** | `README.md`, `ROADMAP.md`, `MAP_FLOW.md` and `GAME_DESIGN_PASS.md` reconciled |
**Still open (out of scope for these phases):** H-01/H-02 (floors L2–L7, bosses, motel, finale), H-03 (enemy roster/affixes), H-05 (cross-room pathfinding), H-06 (physical key/door interaction), M-03 (legacy 260 m anchors), M-04 (unused prop kinds), M-05/M-06 (audio, fonts, orphan assets), M-02's doc claim about art for other OoPs.
Verification performed: `cmake --build build -j6` clean; standalone C++ harnesses for the ritual state machine and clearance/side-room flow pass; `--floor-overview` screenshots confirm the new corridor, projector marker, locked doors and HUD stamp.
---
## 2. Sources reviewed
| Source | Role |
|---|---|
| `docs/maps/floor_01_security.svg` / `.png` | Authored 2D tactical floor plan (Rev 02), 6 px/m, 160 × 120 m |
| `docs/maps/oldest_house_flow.svg` / `.png` | Authored 7-floor vertical flow map |
| `docs/MAP_FLOW.md` | Floor 01 detailed design + 7-floor ladder + status |
| `docs/GAME_DESIGN.md`, `docs/GAME_DESIGN_PASS.md`, `docs/RPG_LITE.md` | Systems / OoP / enemy design |
| `docs/ROADMAP.md`, `docs/ENV_ENHANCEMENT.md`, `docs/ART_DIRECTION.md`, `docs/TECHNICAL.md`, `README.md` | Milestone, art, and presentation intent |
| `src/game/floor.{hpp,cpp}` | Authoritative client level data (rooms, walls, corridors, props, spawn helpers) |
| `src/game/game.{hpp,cpp}`, `corruption.*`, `ritual.*`, `enemies.*`, `director.*`, `weapons.*`, `buffs.*` | Runtime level/progression logic |
| `src/render/presenter.cpp`, `dressing.cpp`, `models.*`, `concrete.*`, `layout.hpp` | Level visualization and asset loading |
| `assets/**`, `src/main.cpp`, `src/render/ui_font.cpp` | Asset inventory and load paths |
Coordinate convention: the plan is 160 × 120 m with **+y up**; the world is plan-centred with `to_world(x,y) = (x−80, 60−y)` (`src/game/floor.hpp:53-58`). SVG pixel space is y-down, so `map_x = (px−40)/6`, `map_y = (810−py)/6`. Both conversions were used to verify the SVG against the code.
---
## 3. What we have in the 2D map
### 3.1 Floor 01 tactical plan (`floor_01_security.svg`, Rev 02)
Floor plate **160 × 120 m at 6 px/m**; grid 10 m. Room schedule (SVG lines 117–126):
| # | Room | Size (m) | Role (per legend / MAP_FLOW §3) |
|---|---|---|---|
Live sizes include `Floor::kScale` (1.5); authored map sizes are 2/3 of these.
| 1 | Security Gate / Checkpoint | 144 × 39 | Spawn, records-archive shelf aisles (no collision), guard desk, Clearance 01 barrier, first radio line, no combat initially |
| 2 | Central Plaza | 141 × 63 | Hub: red carpet cross, four-pillar grid, TV / Hotline / Duck / Pedestal OoPs, debris, Hiss spill; first horde arena |
| 3 | Projector Room / Briefing | 39 × 63 | Hiss briefing reel; **Projector OoP ritual → run skill**; seating rows |
| 4 | Office Suite | 114 × 54 | Repurposed S16 open-plan GLB kit (desks, computers, chairs, partitions, meeting table, sofas, lamps, plants, cabinets, crates) on a teal island |
| 5 | Silos | 78 × 54 | Storage vaults / world objects; **Threshold Key vault**; some guarded by a Hiss Brute |
| 6 | Threshold Stairwell | 39 × 9 | Red hazard door above Silos; key consumed; floor jump → motel → L2 |
| A | Records Archive | 21 × 51 | Side: records / lore / key chance |
| B | Locker Room | 24 × 48 | Side: shard greed |
| C | Janitor Closet | 42 × 27 | Side: Ahti chore flavour |
| D | Security Booth | 24 × 36 | Side: world-object cache |
**Intended route** is explicitly drawn and labelled: **1 → 2 → 3 → 4 → 5 → 6** (SVG arrows at lines 78–82; legend at 127–131). The design notes add:
- Gate has three exits but only one is **lit**; others open with clearance/keys (`MAP_FLOW.md:90-91`).
- Plaza is the hub: north to Silos and Office Suite, east to Projector, side to Locker (`MAP_FLOW.md:92-93`).
- Office ↔ Silos is a short east-west corridor, an exposed 4 → 5 crossing (`MAP_FLOW.md:94-95`).
- Key in Silos vault; stairwell door stays shut until taken (`MAP_FLOW.md:96-97`, SVG line 131).
The SVG's colour legend marks the Projector room yellow as **"OoP RITUAL / KEY"** and the status box reads **"RITUAL: PROJECTOR — PENDING"** (SVG lines 111, 135).
### 3.2 Whole-house flow map (`oldest_house_flow.svg`)
A vertical clearance ladder, 7 floors, one continuous corruption clock, with an Oceanview Motel reroll stop between each floor and a finale line. Per-floor promises (SVG lines 65–134; `MAP_FLOW.md:34-42`):
| Floor | Identity | Rooms / identity | OoP ritual | Key from | Boss / gate |
|---|---|---|---|---|---|
| L1 | Security & Administration | Gate, Offices, Projector, Silos | **Projector** | Silos vault | none (teach loop) |
| L2 | Maintenance | Boiler hall, service corridors, mold pits | Light Switch | Boiler elite | Mold-1 (optional) |
| L3 | Research | Open labs, meeting suites, X-Ray bay, TV stage | Benicoff TV + X-Ray Lightbox | TV quest | Hiss Elevated pack |
| L4 | Communications | Switchboard, broadcast hall, Jukebox lounge | Hotline + Jukebox | switchboard room | esseJ (mirror) |
| L5 | Containment / Panopticon | Cell block, Panopticon core, Silo Annex | Floppy Disk + Launch | guard elite | The Former |
| L6 | Astral / Threshold | Sliding thresholds, Hotline pier, Board antechamber | Polaris / Board Favor | Board trial | Hiss-Choice |
| L7 | Executive | Reception, Director's office, Board chamber | Charge / Board's light | final key | Hiss-Marshall → **Jesse arrives** |
The design grammar repeats on every floor: `GATE → MAIN ROOMS → SIDE ROOMS → THRESHOLD KEY → THRESHOLD DOOR → MOTEL → next gate` (`MAP_FLOW.md:17-25`, SVG line 143).
### 3.3 Broader design promises relevant to levels
- **Mega Man reward:** completing a ritual makes the OoP a permanent run skill (`GAME_DESIGN.md:53-55`; README:10-11).
- **OoP roster of 10** (`GAME_DESIGN.md:179-190`): Spin, Shatter, Charge, Rubber Duck, Floppy Disk, Benicoff TV, Hotline, Launch, Jukebox, X-Ray Lightbox.
- **Enemy roster** (`GAME_DESIGN.md:285-305`): Hiss Corrupted Staff, Hiss Elevated, Hiss Cluster, Mold Spore, Mold Host, Threshold Creature, Taken, Hiss Brute; elite affixes Resonant/Phasing/Volatile/Shielded/Mending; bosses esseJ, the Former, Mold-1, Hiss-Marshall.
- **Art slices** (`ENV_ENHANCEMENT.md`): S0–S17; S4 "breadth: floors" (Oceanview Motel, Maintenance variant) is still *planned*; S5 is *partial*, pending fonts; audio and OFL fonts promised in `ART_DIRECTION.md:81-92`.
---
## 4. What we have in the actual game client
### 4.1 Floor data (`src/game/floor.cpp:33-125`) — authoritative layout
All 10 rooms are hardcoded; dimensions match the SVG exactly. World bounds are derived by `rect_from_map()` (`floor.cpp:13-17`).
| Map bounds (x0,y0,x1,y1) | Room | Kind | flow label |
|---|---|---|---|
| (56,0,104,26) | SECURITY GATE | Gate | 1 |
| (18,30,112,72) | CENTRAL PLAZA | Plaza | 2 |
| (116,30,142,72) | PROJECTOR ROOM | Projector | 3 |
| (70,76,146,112) | OFFICE SUITE | OfficeSuite | 4 |
| (14,76,66,112) | SILOS | Silos | 5 |
| (16,114,42,120) | THRESHOLD STAIRWELL | Stairwell | 6 |
| (146,34,160,68) | RECORDS ARCHIVE | Side | 0 |
| (0,36,16,68) | LOCKER ROOM | Side | 0 |
| (6,4,46,22) | JANITOR CLOSET | Side | 0 |
| (110,0,156,26) | SECURITY BOOTH | Side | 0 |
**Walls** (`floor.cpp:57-93`): 67 rectangles, interior 3.2 m high, outer shell 4.2 m, six plaza pillars 4.0 m. Gaps are doors. Notable gaps/seals, in map coordinates:
| Room | bottom y0 | top y1 | left x0 | right x1 |
|---|---|---|---|---|
| Gate | x 76–84 | x 72–88 | y 14–18 | y 14–18 |
| Plaza | x 72–88 | x 34–50, x 76–100 | y 46–54 | y 44–56 |
| Projector | x 116–132 | **sealed** | y 44–56 | y 46–54 |
| Office Suite | x 76–100, x 116–132 | **sealed** | y 92–104 | **sealed** |
| Silos | x 34–50 | x 24–36 | **sealed** | y 92–104 |
| Stairwell | x 24–36 | sealed | sealed | sealed |
| Archive / Locker / Janitor / Booth | — | — | one gap each | one gap each |
**Corridors** (visual floor slabs, `floor.cpp:46-55`): 8 — Gate↔Plaza, Plaza↔Projector, Plaza↔Silos, Plaza↔Office, Silos↔Office, Office↔Projector, Projector↔Archive, Silos↔Stairwell.
**Props** (`floor.cpp:119-146`): 9 archive shelf rows (Gate, visual only), 4 pillars (blocking), 1 screen + 4 seats (Projector), 6 silos, 11 shelves (side rooms), 1 hazard door, 1 key. `PropKind::Desk` and `PropKind::MeetingTable` exist in the enum but are never placed. Only walls and pillars participate in collision; all other props, the thermo thresholds and both the key and hazard door are visual only.
**Spawns:** player at `to_world(80,13)` = world `(0,70.5)` inside the Gate (`floor.hpp:60`). Enemies use `Floor::spawn_near()`, constrained to **the player's current room** (32 polar tries at 22–34 m × `Floor::kScale`, then 24 in-room tries, then a resolve fallback). No fixed enemy spawn points or "enemy rooms".
**Key → door → floor jump** (`game.cpp:206-230`): key at map (55,106) = world (−25,−46) in Silos, picked up at radius 3.0. Door trigger at map (29,117) = world (−51,−57) in the Stairwell, radius 4.0, requiring `has_key` + Stairwell room. On success: `corruption.floor_cleared()` (+0.35 corruption), `++floor_number`, `++floor_clears`, clear enemies/pickups/buffs/rituals, respawn at Gate. **The geometry never changes.**
**Rituals** (`ritual.hpp:27-40`): only `TV` at world (13,17) → map (93,43) and `Lightswitch` at world (0,−8) → map (80,68). Both positions are **inside Central Plaza**. Completion applies a timed buff (`TV LIVE` damage taken ×0.9 for 600 s; `FLUORESCENT LIGHT` damage taken ×1.25 for 12 s), never a weapon/skill. The presenter draws only these two OoP models and carries the comment *"Ritual anchors still live in the Offices on this floor"* (`presenter.cpp:601-608`) — factually wrong per the constants above.
### 4.2 Implemented systems (level-adjacent)
- Floor 01 is the default playable layout; `Presenter::init()` always sets `floor_mode_ = true` (`presenter.cpp:224-225`).
- Floor-aware dressing scatters document stacks, loose sheets and garbage cans in the Office Suite and Plaza, destroyed by area blasts (`dressing.cpp:21-73`).
- Corruption clock with 9 tiers, Director spawn economy, real-time level-up offers, 4 weapons with simplified evolutions, 9 world-object buffs, scene-wide buff/debuff system — all implemented.
- 4 enemy types: HissStaff, MoldSpore, HissBrute, HissGhost (`enemies.hpp:10`). HissGhost is undocumented in the design docs.
- No bosses, no motel, no clearance gating, no win/finale state (`GameState` = Title/Playing/GameOver only).
### 4.3 Assets actually loaded
Every one of the **39 distinct asset paths** referenced in `src/` exists on disk: 25 GLBs, 9 shaders, `glow.png`, `actor_ramp.png`, 3 concrete maps. No broken links. All 25 `ActorModel` enum values resolve to a GLB.
---
## 5. Cross-comparison results
### 5.1 Map ↔ client room bounds: full match ✅
All 10 SVG rectangles convert to exactly the code's `rect_from_map(...)` arguments. Room sizes in `MAP_FLOW.md` §3 match the SVG schedule and `floor.cpp`. This is the strongest part of the level work: the plan, doc and code genuinely share the same room table.
### 5.2 Intended route connectivity: broken ❌
Walking the designed route against the actual wall gaps:
| Leg | Intended (SVG arrow) | Client reality |
|---|---|---|
| 1 → 2 Gate → Plaza | px (520,774)→(520,594), map x≈80 | ✅ Gate top gap x72–88, corridor (72,26,88,30), Plaza bottom gap x72–88 |
| 2 → 3 Plaza → Projector | px (640,510)→(796,510), map y≈50 | ✅ Plaza right gap y44–56, corridor, Projector left gap y44–56 |
| **3 → 4 Projector → Office** | px (796,414)→(796,330), map x≈126 | ❌ **Blocked.** Corridor slab (116,72,132,76) exists and Office bottom gap x116–132 exists, but the **Projector top wall is sealed** (`floor.cpp:81`) |
| 4 → 5 Office → Silos | px (700,246)→(448,246), map y≈94 | ✅ Office left gap y92–104, corridor (66,92,70,104), Silos right gap y92–104 |
| 5 → 6 Silos → Stairwell | px (220,162)→(214,120), map x≈29–30 | ✅ Silos top gap x24–36, corridor (24,112,36,114), Stairwell bottom gap x24–36 |
Additional connectivity defects:
- **Projector bottom gap (x116–132 at y30) is a dead-end stub.** It opens into the strip above the Security Booth, whose top wall is sealed; the Plaza right wall is solid at that height.
- **The Office↔Projector corridor is a one-sided stub**: the Office end opens, the Projector end does not.
- **Three passable links have no corridor floor slab** in `corridors_`: Gate↔Booth (map x104–110), Gate↔Janitor (x46–56), Plaza↔Locker (x16–18). They are walkable over bare floor, so they read as unfinished.
- **The Gate's "only one lit exit" rule is absent**: all four Gate gaps are open from the start. No clearance or key gating exists (`MAP_FLOW.md:90-91` vs `floor.cpp:78`).
- **Key and hazard door are non-colliding** (`floor.cpp:105-125`); the stairwell is completed by a proximity trigger, not by a door that physically opens.
### 5.3 OoP / ritual placement conflicts ❌
| Expectation | Source | Client reality |
|---|---|---|
| Projector ritual grants the Projector skill; L1's signature beat | SVG legend/status, `MAP_FLOW.md:36,71-73,100-102` | No Projector ritual exists; `RitualType` is only `{TV, Lightswitch}` (`ritual.hpp:27`) |
| TV / Hotline / Duck / Pedestal OoPs are in the Plaza | `MAP_FLOW.md:68-69`, SVG circles + legend | Only `TV` model is drawn, as a ritual anchor; Hotline/Duck/Pedestal GLBs are loaded but never placed in the level |
| Ritual anchors "live in the Offices" | `presenter.cpp:601` comment | Both anchors compute to map (93,43) and (80,68), inside the Plaza (`ritual.hpp:30,34`) |
| Ritual completion grants a permanent skill | `GAME_DESIGN.md:53-55`, README:10-11 | Grants a timed buff only (`ritual.cpp:30-43,60-66`); `GAME_DESIGN_PASS.md:15` confirms |
| Of 10 promised OoPs, all are obtainable | `GAME_DESIGN.md:179-190` | Only 4 weapons exist (Spin, Shatter, Charge, Launch); Rubber Duck/TV/Hotline are art-only, Floppy Disk/Jukebox/X-Ray have no art or code |
### 5.4 Whole-flow scope gap ❌
The client ships **exactly one 160 × 120 m floor**. `Game::floor_pass()` increments `floor_number` and corruption but reuses the same `Floor` object and respawns at the same Gate (`game.cpp:218-229`; `MAP_FLOW.md:117-120` documents this as an M3 prototype). Consequently L2–L7 rooms, 7 bosses, the Oceanview Motel, the finale, diegetic clearance gating, and the Jesse arrival have **no implementation**. `MAP_FLOW.md:126-128` itself lists these as "still to do", along with enemy pathfinding outside the player's room.
### 5.5 Asset audit ⚠️
**No missing assets.** Orphans and gaps:
| Asset | Status |
|---|---|
| `assets/models/guard.glb` | Unused — `ActorModel::Guard` loads `agent.glb` (`models.cpp:271`); no path references `guard.glb` |
| `assets/sprites/glyph_a.png`, `glyph_b.png`, `glyph_c.png`, `guard.png`, `hiss_brute.png`, `hiss_staff.png`, `mold_spore.png`, `shard.png` | Unused — S6 retired standees; only `glow.png` is loaded (`presenter.cpp:31`) |
| `assets/blender/*.blend*` (17 files) + root `ConcreteMaterial.blend` | Authoring sources only; correct to be unreferenced at runtime |
| `assets/audio/` | Empty (`.gitkeep`) — no `LoadSound`/`PlaySound` anywhere; drone, chanting, radio, impacts all absent (`ART_DIRECTION.md:87-92`) |
| `assets/fonts/` | Empty — runtime uses absolute system TTFs (`ui_font.cpp:16-23`); promised Archivo / IBM Plex Mono not bundled |
| `assets/env/` | Empty — environment is procedural by design |
| No bosses, Oceanview, Floppy Disk, Jukebox, X-Ray, Projector models | Promised art absent (`ENV_ENHANCEMENT.md:121-126`, S4 planned) |
### 5.6 Doc self-consistency ❌
- **Floor count:** `GAME_DESIGN.md:307-314` lists 4 floors (Maintenance, Research, Containment, Executive); `MAP_FLOW.md:34-42` lists 7 with different numbering. `MAP_FLOW.md:45-47` acknowledges the reuse but the docs were never reconciled.
- **Camera tuning:** `ART_DIRECTION.md:48-49` and `ENV_ENHANCEMENT.md:314-316` say fov 48 / height 18 / forward 14; `TECHNICAL.md:74-77` and `ENV_ENHANCEMENT.md:440-445` say fov 55 / 16 / 15. Client `camera_tuning.hpp:6-8` uses 55 / 16 / 15.
- **Arena size:** README simultaneously claims a 260 × 260 m floor (line 30) and the 160 × 120 m Floor 01 as default (lines 34-41). Both coordinate systems remain live: `GameConfig::arena_half = 130` (`game.hpp:31`) vs `Floor::kWidth/kHeight` (`floor.hpp:51-52`); the presenter's concrete/strips still use the 260 m values (`presenter.cpp:623,761-775`).
- **Stale status docs:** `GAME_DESIGN_PASS.md` still claims no run structure, no weapon awards, no player stats, data-only evolutions — all now false. ROADMAP M3–M7 status cells are blank although Floor 01 is shipped. README says M0–M6 / S0–S15 / "3 enemy archetypes"; actual docs cover M7 / S17 / 4 enemy types.
- **Ritual replacement:** `GAME_DESIGN.md:60` says a new ritual replaces the active one; the code has no restart path (`ritual.hpp:55-64`).
---
## 6. Findings register
Severity: **C**ritical (blocks the designed experience), **H**igh (major promised content missing/broken), **M**edium (quality/consistency), **L**ow (polish).
### C-01 — Intended route leg 3 → 4 is physically blocked
**Evidence:** SVG arrow `M796 414 L796 330` (`floor_01_security.svg:80`); corridor slab `floor.cpp:52`; Office bottom gap `floor.cpp:82`; **Projector top wall sealed** `floor.cpp:81`.
**Impact:** A player following the documented route must backtrack through the Plaza to reach the Office Suite; the "short crossing" design intent fails.
**Fix:** Add gap `{{116,132}}` to the Projector top wall in `room_walls(116,30,142,72, …)` at `floor.cpp:81`. Re-verify with `--floor-overview` and a walkthrough from Projector to Office.
### C-02 — Ritual rewards do not grant skills; Projector ritual missing
**Evidence:** `ritual.hpp:27`, `ritual.cpp:30-43,60-66`, `presenter.cpp:601-608`; `MAP_FLOW.md:100-102`; SVG status line 135.
**Impact:** The game's "signature mechanic" (README:10-11) and L1's defining beat are absent. Rituals are buffs only.
**Fix:** Add a Projector ritual type with a room anchor in the Projector Room, and wire ritual completion into `weapons_` grant/upgrade so the OoP becomes a permanent run skill.
### H-01 — Only 1 of 7 floors exists; floor jumps reuse the same geometry
**Evidence:** `floor.hpp:44-52`, `game.cpp:218-229`, `MAP_FLOW.md:117-128`, `oldest_house_flow.svg:65-134`.
**Impact:** No distinct Maintenance/Research/Communications/Containment/Astral/Executive spaces, no bosses, no motel, no finale.
**Fix:** Introduce a floor template table keyed by `floor_number` and swap room/wall/prop sets on `floor_cleared()`; at minimum, re-theme and re-layout L2 before adding more.
### H-02 — 7 bosses, Oceanview Motel, and the Jesse-arrival ending have no code
**Evidence:** `game.hpp:19` (no win state), `enemies.hpp:10` (no boss), `models.cpp:197` aspirational comment, `MAP_FLOW.md:126`, `oldest_house_flow.svg:43-61,138-139`.
**Impact:** The run has no climax or between-floor decision point.
**Fix:** Schedule bosses and the motel reroll as a dedicated milestone; stub a `GameState::Victory` and a motel state first.
### H-03 — Enemy roster gaps and undocumented enemy
**Evidence:** `GAME_DESIGN.md:285-305` vs `enemies.hpp:10`, `enemies.cpp:19-22`, `director.cpp:10-13`. HissGhost exists in code but in no doc; Hiss Elevated, Hiss Cluster, Mold Host, Threshold Creature, Taken-as-enemy, all 5 elite affixes and all 4 bosses are missing.
**Impact:** Combat variety and difficulty scaling fall far short of the design.
**Fix:** Update the docs to match the shipped roster, then prioritize Hiss Elevated and one elite affix; remove or document `guard.glb`.
### H-04 — Gate clearance gating and side-room payoff absent
**Evidence:** `MAP_FLOW.md:48-51,90-91,85-87` vs `floor.cpp:78,118-123`.
**Impact:** The "one lit exit / greed vs. clock" decisions do not exist; side rooms are empty shelving with no key, loot, or lore logic.
**Fix:** Gate the Gate↔Booth/Janitor and Plaza↔Locker openings behind clearance/keys; attach a shard cache, lore pickup, or key chance to each side room.
### H-05 — Enemy spawns are room-local; no cross-room pathfinding
**Evidence:** `floor.cpp:186-207`, `MAP_FLOW.md:126-128`, `enemies.cpp:68-69`.
**Impact:** Hordes cannot funnel through the designed corridors and doorways; the arena connections are decorative for AI.
**Fix:** Add a nav graph over `rooms_`/`corridors_` wall gaps and allow spawns in adjacent rooms once pathfinding exists.
### H-06 — Key and hazard door are non-colliding; door is a proximity trigger
**Evidence:** `floor.cpp:105-125`, `game.cpp:213-216`, `presenter.cpp:610-619`.
**Impact:** The threshold door reads as set dressing rather than a locked exit; the key has no physical interaction.
**Fix:** Make the stairwell door a real collision barrier removed on key possession, and give the key a pickup animation/inspect beat.
### M-01 — Dead-end stubs and missing corridor slabs
**Evidence:** `floor.cpp:52` (one-sided Office↔Projector corridor); `floor.cpp:81` (Projector bottom gap dead end); `corridors_` omits Gate↔Booth, Gate↔Janitor, Plaza↔Locker (`floor.cpp:46-55`).
**Impact:** Bare-floor passages and visual dead ends read as unfinished.
**Fix:** After C-01, either seal the Projector bottom gap or connect it; add the three missing 4 m corridor slabs.
### M-02 — Ritual anchor placement/comment wrong and inconsistent with map
**Evidence:** `ritual.hpp:30,34` → map (93,43)/(80,68) in Plaza; `presenter.cpp:601` says Offices; SVG marks Projector as the ritual room.
**Impact:** Misleading comment and a map/level mismatch that obscures where OoPs actually are.
**Fix:** Move anchors to match the final OoP layout (C-02) and delete/correct the comment.
### M-03 — Legacy 260 m arena coexists with the 160 × 120 m floor
**Evidence:** `game.hpp:31` (`arena_half=130`), `layout.hpp:3-55`, `presenter.cpp:623,761-775`, README:30-41.
**Impact:** Two live coordinate systems; `--room-test` shows a room not on the playable floor; extra geometry under the floor.
**Fix:** Retire the fallback paths or scope them explicitly behind a non-floor dev flag.
### M-04 — PropKind Desk / MeetingTable unused in floor data
**Evidence:** `floor.hpp:34` defines them; presenter cases `presenter.cpp:549-557`; no `add(...)` call in `floor.cpp`.
**Impact:** Dead rendering code; offices rely on dressing instead of authored prop data.
**Fix:** Either place them in the Office Suite via `floor.cpp` or remove the cases.
### M-05 — Audio, fonts, and env asset directories are empty
**Evidence:** `assets/audio|fonts|env/.gitkeep`; `ART_DIRECTION.md:81-92`; `ENV_ENHANCEMENT.md:143-148,544-545`; `ui_font.cpp:16-23`.
**Impact:** No soundscape or intended typography; HUD styling is blocked on fonts.
**Fix:** Bundle the OFL fonts and a minimal SFX set; switch `ui_font.cpp` to project-relative paths.
### M-06 — Orphan assets
**Evidence:** `guard.glb`, 8 sprite PNGs, `.blend` authoring files (the latter expected).
**Impact:** Repo clutter and false impressions about implement-ability (e.g. standees for missing enemies).
**Fix:** Remove or move to an `assets/legacy/` folder; keep `.blend` sources documented as authoring-only.
### M-07 — Documentation drift
**Evidence:** §5.6; README stale pointers; GAME_DESIGN_PASS stale claims; ROADMAP blank statuses.
**Impact:** Reviewers and new contributors cannot trust the docs as a spec.
**Fix:** Reconcile floor count, camera values, arena claim, and mark M3 as "partial — Floor 01 prototype".
### L-01 — Ritual system "replaces active ritual" documented but not implemented
**Evidence:** `GAME_DESIGN.md:60` vs `ritual.hpp:55-64` (single start, no restart path).
**Fix:** Implement restart or revise the doc.
### L-02 — Map SVG authoring pipeline claim not verifiable from repo alone
**Evidence:** `MAP_FLOW.md:122-124` says the SVG/PNG and Blender blockout are regenerated from the same room table, but no generator script for the SVG is present in `tools/blender/` (the builder there is `build_scene.py`; the only source reference to the SVG is the comment at `src/game/floor.hpp:44`; the SVG itself is hand-authored markup).
**Fix:** Add and document the map generator, or soften the claim to "kept in sync manually" (the current bounds do match).
### L-03 — Side rooms lack on-screen labels
**Evidence:** `flow = 0` for all side rooms (`floor.cpp:40-43`); `presenter.cpp:1192` skips them.
**Fix:** Give side rooms short labels once they have gameplay payoff (H-04).
---
## 7. Recommended fix order
1. **Unblock 3 → 4** (C-01) and add the three missing corridor slabs + resolve stubs (M-01). One-line wall change plus a short verification pass.
2. **Make the signature mechanic real** (C-02): Projector ritual in the Projector Room + ritual→skill grant. This aligns the map, the README, and the core loop.
3. **Decide the floor strategy** (H-01/H-02): either commit to distinct L2 geometry or formally relabel the current build as a single-floor vertical slice; update MAP_FLOW/ROADMAP accordingly.
4. **Close the design-vs-client gaps** (H-03–H-06): roster/affixes, gate gating and side-room payoff, enemy pathing, physical door.
5. **Asset/doc hygiene** (M-05–M-07, L-01–L-03): bundle fonts/audio, prune orphans, reconcile docs, generator script.
**Verification gates for any level change:** `--floor-overview` overhead capture; walk the full 1→2→3→4→5→6 route with collision on; confirm key pickup in Silos and door trigger in Stairwell; re-run the asset-path existence check; build with `cmake --build build -j6`.
---
## 8. Appendix — Reference data
### 8.1 Code ↔ map coordinate check (worked examples)
- Security Gate SVG rect `x=376,y=654,w=288,h=156` → map x (376−40)/6=56 … (664−40)/6=104; map y (810−810)/6=0 … (810−654)/6=26 → code `(56,0,104,26)` ✅
- Office Suite SVG `x=460,y=138,w=456,h=216` → map (70,76,146,112) ✅
- Stairwell SVG `x=136,y=90,w=156,h=36` → map (16,114,42,120) ✅
- All 10 rooms verified; full table in §4.1.
### 8.2 Key world positions
| Item | Map | World | Source |
|---|---|---|---|
| Player spawn | (80,13) | (0,47) | `floor.hpp:60` |
| Threshold Key | (55,106) | (−25,−46) | `floor.hpp:61`, `floor.cpp:125` |
| Hazard door / trigger | (29,117) | (−51,−57) | `floor.hpp:62`, `game.cpp:216` |
| TV ritual anchor | (93,43) | (13,17) | `ritual.hpp:30` |
| Light Switch ritual anchor | (80,68) | (0,−8) | `ritual.hpp:34` |
### 8.3 Asset path audit summary
- Referenced and present: 39/39 unique paths (25 GLB, 9 shaders, 5 images/textures).
- Present but unreferenced: `guard.glb` + 8 sprites (+ authoring `.blend` files).
- Promised in docs but absent: audio files, OFL fonts, Oceanview/Maintence variants, boss models, Floppy Disk/Jukebox/X-Ray/Projector models.
- Shader set is complete and fully used (vertex shaders intentionally absent for fragment-only post/bloom passes).
### 8.4 Review limitations
This is a static review of source, docs and assets at the current git HEAD. It did not run the game or render `--floor-overview`/`--plaza-test` captures; the connectivity conclusions were derived from the wall-gap data in `floor.cpp` and the arrows in the SVG. A short in-engine walkthrough is recommended to confirm C-01 before changing wall data.