cntrl/docs/MAP_FLOW.md

151 lines
9 KiB
Markdown

# FBC: NIGHT SHIFT — Map & Run Flow (brainstorm)
Status: **concept / M3+ run structure**. This proposes the handcrafted room-template
skeleton the Director assembles (GAME_DESIGN §7), not a new genre system. The
existing slice is one arena; this is the full 7-floor ascent to the Executive.
## 1. The shape of a run
The Oldest House is a **vertical clearance ladder**. Every floor is one clearance
band, one combat identity, one OoP ritual, one Threshold Key, one door up. You
always start a floor at a **security gate** and always leave through a **threshold
door**. The House is the level: corridors are the connective tissue, big rooms are
the set pieces.
Flow grammar (repeats with variation on every floor):
```
SECURITY GATE (clearance check)
-> MAIN ROOMS (combat, ritual, loot)
-> SIDE ROOMS (greed vs. the corruption clock)
-> THRESHOLD KEY (elite / side room / quest)
-> THRESHOLD DOOR (jump: corruption + tier up)
-> OCEANVIEW MOTEL (reroll shop between floors)
-> next floor's gate
```
Design intent: the gate is a **breathing point and a tutorial beat** (low pressure,
radio chatter, clearance stamp); rooms escalate; side rooms are the RoR2 "one more
room or leave?" decision; the key makes you commit; the motel is the only safe-ish
pause. Corruption never resets and jumps on each key (GAME_DESIGN §3).
## 2. The seven floors
| # | Floor | Clearance | Rooms / identity | OoP ritual | Key from | Boss / gate |
|---|---|---|---|---|---|---|
| L1 | Security & Administration | 01 | Gate, open-plan Offices, Projector Room, Silos | Projector ("briefing reel") | Silos side vault | Threshold 1 — no boss (teach the loop) |
| L2 | Maintenance | 02 | Boiler hall, service corridors, mold pits | Light Switch (GAME_DESIGN §2.3) | elite in Boiler | Mold-1 (mini-boss, optional) |
| L3 | Research | 03 | Open labs, meeting suites, X-Ray bay, TV stage | Benicoff TV + X-Ray Lightbox | TV quest reward | Hiss Elevated pack |
| L4 | Communications | 04 | Switchboard, broadcast hall, Jukebox lounge | Hotline + Jukebox | switchboard side room | esseJ (mirror of your build) |
| L5 | Containment / Panopticon | 05 | Cell block, Panopticon core, Silo Annex | Floppy Disk + Launch | Panopticon guard elite | The Former (hand sweep) |
| L6 | Astral / Threshold | 06 | Sliding thresholds, Hotline pier, Board antechamber | Polaris / Board Favor passives | Board trial | Hiss-Choice / bridge |
| L7 | Executive | 07 (DIRECTOR) | Executive reception, Director's office, Board chamber | Charge / Board's light | final key | Hiss-Marshall -> **Jesse arrives** |
Notes:
- L1 is the only floor the player has seen in the vertical slice; L2/L3/L5/L7
reuse the floor identities already named in GAME_DESIGN §7 (Maintenance,
Research, Containment/Panopticon, Executive). L4/L6 are new to fill the climb.
- Clearance is **diegetic gating**: the gate stamp shown on the HUD form, the
colour of the door stripe, and which rooms will actually open. Clearance 1
starts with only the Gate/Offices/Projector/Silos loop accessible; higher
floors' shortcuts and elevators need a higher stamp (side-quest reward).
- Silos recur: L1 = storage where the §4.6 world objects "live"; L5 = the
Silo Annex holding Altered Items under containment.
- The OoP column is where the Mega Man reward lands: survive the room, claim the
skill for the rest of the run.
## 3. Floor 01 — Security & Administration (detailed)
See `docs/maps/floor_01_security.svg` (and `.png`) for the 2D plan.
Floor plate: **160 x 120 m**, 6 px per metre. Intended route is **1 -> 2 -> 3 ->
4 -> 5 -> 6**; side rooms are optional detours.
1. **Security Gate / Checkpoint** (48 x 26 m) — spawn. Turnstiles, a guard desk,
the Clearance 01 barrier. First radio line, first redaction pickup. No combat
for the first few seconds; teaches move + Evade.
2. **Central Plaza** (94 x 42 m) — the big open centre of the floor, carrying the
*original hub scene*: red carpet cross, the pillar grid, TV / Hotline / Duck /
Pedestal OoPs, drifting debris and a Hiss spill. Six solid pillars give cover
without turning it into a maze. This is the first real horde arena.
3. **Projector Room / Briefing** (26 x 42 m) — right of the plaza. A Hiss briefing
reel runs on the wall. Reach the projector -> **OoP ritual** -> claim the
Projector as a run skill. Seating rows give the room a readable arena shape.
4. **Office Suite** (76 x 36 m) — directly **right of the Silos**, the repurposed
open-plan Research room: the full S16 GLB kit (desks, computers, chairs,
partitions, meeting table, sofas, lamps, plants, cabinets, crates) on a teal
island. A wide right-hand chamber that reads as the "previous level" brought
into Floor 01.
5. **Silos** (52 x 36 m) — storage vaults at the top left, where "different
objects live": the director scatters §4.6 world objects here, some guarded by
a Hiss Brute. Threshold Key vault is here.
6. **Threshold Stairwell** (26 x 6 m) — red hazard door above the Silos; key
consumed, floor jump, motel, then L2.
Side rooms: **Records Archive** (key chance / lore), **Locker Room** (shard
greed), **Janitor Closet** (Ahti chore flavor), **Security Booth** (world-object
cache). Side rooms are where the greed-vs-clock decision lives.
### Flow notes
- The Gate has three exits but only one is lit: the concourse to the Plaza. Other
doors open as clearance / keys are found (a reason to come back).
- The Plaza is the hub: north doors to Silos and the Office Suite, east door to
the Projector Room, side doors to Locker Room; it has the most connections.
- The Office Suite and Silos are linked by a short east-west corridor, so the
intended 4 -> 5 route is a quick, exposed crossing.
- The Threshold Key sits in the Silos vault; the stairwell door above it stays
shut until the key is taken.
## 4. Open questions
- Should the Projector be a manual OoP (ritual -> skill) or a world object that
just floods the room with Hiss projections? Proposal: ritual, to keep L1's
signature beat consistent with TV / Light Switch.
- Are the 7 floors always in this order, or does the Board reshuffle the middle
five (Ashtray Maze parking-lot idea)? Proposal: fixed order for M3, shuffle
later as an endless-mode modifier.
- Does the Oceanview Motel sit between every floor or every other floor?
Proposal: every floor — it is the only place the run can breathe.
## 5. Implementation status
Floor 01 is **playable in the build**: the C++ game now uses the blockout as its
default layout. `src/game/floor.{hpp,cpp}` owns the room/wall/prop data and the
collision + spawn helpers, shared by the sim and the renderer. The dressing
system (`src/render/dressing.cpp`) is also floor-aware: document stacks, loose
sheets and garbage cans are scattered on the office-suite desks and around the
plaza, and area blasts destroy them into paper debris. The gate is the
spawn, the Threshold Key sits in the Silos, and the hazard door in the stairwell
consumes it: `Corruption::floor_cleared()` jumps the clock, enemies clear, the
player respawns at the gate and `floor_number` increments (same layout reused
with higher corruption, as an M3 prototype of the 7-floor climb). Run with
`--floor-overview` for an overhead capture of the whole floor or `--plaza-test`
to start in the central hub scene. The Blender blockout
(`assets/blender/fbc_floor01_blockout.blend`) and the SVG/PNG map are derived from
the same room schedule and are kept in sync by hand; there is currently no
generator script that regenerates the SVG from `src/game/floor.cpp`.
Still to do for the full vision: the other six floors, Oceanview shop, and
proper pathfinding for enemies that spawn outside the player's room (currently
spawns are room-local).
**Level-design follow-up (2026-11-24).** The route and progression gaps found
in `docs/LEVEL_DESIGN_REVIEW.md` are now closed for Floor 01:
- The intended 3 -> 4 route is open: the Projector's north wall now has the
x116-132 gap that aligns with the existing corridor and the Office Suite's
south opening. The old dead-end stub at the Projector's south wall is sealed,
and the three walkable links that had no slab (Gate -> Booth, Gate -> Janitor,
Plaza -> Locker) now draw their corridor floors.
- The Projector ritual is implemented: standing at the briefing reel for 20 s
claims the Projector as a permanent OoP (`WeaponType::Projector`). Rituals can
be replaced after completion and each can be claimed once per run.
- The Gate's sealed side exits now obey the diegetic clearance rule from §2:
Clearance 01 opens only the Plaza concourse; claiming the Projector raises
clearance to 02 and opens the Locker Room, Janitor Closet and Security Booth.
A floor jump raises clearance again. Each side room grants a one-time reward
(intel/+XP, stashed shards, Ahti's first-aid kit, or a world-object cache),
which gives the greed-vs-clock detour an actual payoff.
## 6. Files
- `docs/maps/oldest_house_flow.svg` / `.png` — the whole 7-floor ascent.
- `docs/maps/floor_01_security.svg` / `.png` — the detailed 2D floor plan.