cntrl/docs/GAME_DESIGN.md
dandovlatov 78f058176d FBC: NIGHT SHIFT - scaffolded the project and delivered grey-box milestones M0-M2, laying the C++23/raylib horde-survivor base
Control-universe Vampire Survivors-like horde survivor (C++23 + CMake + raylib 6.2 via FetchContent).

- sim/render split: raylib-free core/game, deterministic 60 Hz tick, PCG32 seeds
- RoR2-style corruption scaling + credit spawn director (too-cheap rule)
- 4 Objects of Power weapons with levels 1-4 and Altered Form evolutions
- VS-style Board Directive drafts, damage numbers, brutalist diorama presenter
- docs: game design, art direction, technical design, roadmap

Milestones M0-M2 complete and validated (250 enemies @ 60 fps stress capture).
2026-10-24 09:46:55 +04:00

162 lines
8.4 KiB
Markdown

# FBC: NIGHT SHIFT — Game Design
## 1. Vision
> October 2019. The Hiss breach is hours old. Director Trench is dead on his office
> floor and nobody has told Jesse Faden yet. You are an FBC security guard with a
> Service Weapon you are not fully authorized to carry, and the Oldest House is
> eating itself.
A **Vampire Survivors-style horde survivor** in the Control universe: you move
(WASD), everything else is automatic. The setting is the night just before Jesse
becomes Director: one solo FBC security guard trying to uphold normality in a
rapidly decaying Oldest House. We battle Hiss-corrupted people ("taken" staff),
monsters from thresholds, run quests for Objects of Power, and find keys to open
new floors.
Tone slot the genre gives for free: VS-style games are chaos — Control's chaos is
*bureaucratic*. Radio chatter from Emily Pope, chores from Ahti ("the mold in the
phone room, it needs a mop, yah?"), redacted documents as pickup lore, the Board
"approving" your level-ups.
**Working title:** FBC: NIGHT SHIFT (alternates: OLDEST HOUSE: BREACH,
AWE: NIGHT SHIFT, CONTROL: BREACH PROTOCOL).
## 2. Core loop
1. **Move (WASD), auto-fight.** Dash = *Evade*. Weapons are Objects of Power
firing on their own cooldowns/targeting rules.
2. **Kill Hiss -> Resonance Shards (XP) -> Level Up -> Board Directive: pick 1 of 3
redacted cards.** Choices: new OoP trial / OoP upgrade / passive perk / heal.
3. **OoP Trials — the signature mechanic.** A quest marker appears ("OoP detected:
RESEARCH FLOOR — TV SET"). Reach it -> **fight the trial** (guardian mini-boss, or
a 60-second containment ritual). Win -> **the OoP becomes your skill/weapon
permanently for the run.** Mega Man structure: you don't buy powers, you survive
them.
4. **OoP Evolutions:** OoP lv4 + a specific passive = **Altered Form** (build-crafting
layer).
5. **Find the Threshold Key** (elite drop / side room / quest reward) -> the floor's
threshold door unlocks -> next sector.
6. **Run ends** at the Executive floor: the new Director walks in (radio: "Ma'am?
...Ma'am, who are you?"). Death = containment failure. Endless Shift mode after.
## 3. Corruption — Risk of Rain 2 progressive difficulty, FBC skin
The clock is the enemy. The longer you loot, the more the House decays. RoR2
structure, taken deliberately:
- **Continuous time-based scaling** (not stage-based): corruption coefficient
`c(t) = base + growth_per_second * t`, with a **jump and a faster growth rate each
time a sector is cleared** (RoR2 jumps difficulty on each environment completed,
exponentially across loops). Corruption is **global to the run** — the House does
not reset because you changed floors.
- **Named sub-difficulty tiers** (RoR2: Easy -> "I SEE YOU" -> "I'M COMING FOR YOU" ->
HAHAHAHA). The tier is what the player *feels*.
- **Credit-based spawn Director** (RoR2 exact structure): credits accumulate over
time scaled by corruption; spawn cards cost credits; the **"too cheap" rule** — at
high corruption the director refuses to spend its budget on weak mobs and saves
for big threats. This is why RoR2 stops feeling like a horde and starts feeling
like a *hunt*.
- **Elite tiers with affixes** (RoR2 numbers: T1 = 6x cost, 3-5x HP, 2x dmg; T2 =
36x cost, 18x HP, 6x dmg, unlocked late-run).
- **Difficulty modes:** Drizzle/Rainstorm/Monsoon -> **TRAINING / FIELD DUTY /
DIRECTOR'S GAUNTLET** (scaling pace x0.5 / x1.0 / x1.5, regen/armor tweaks).
- The teleporter = our **key door + OoP trial**. RoR2's "do I leave yet?" maps onto
"the threshold key is in my pocket, one more side room or go?".
- Shard drop values scale with corruption so the economy stays alive as prices rise.
### Tier ladder (HUD: "CONTAINMENT STATUS" gauge, top right)
| Tier | Label | Unlocks |
|---|---|---|
| 0 | NOMINAL | baseline spawn cards |
| 1 | ELEVATED | T1 Hiss-shifted elites (Resonant, Phasing) |
| 2 | ALARM | director credit rate up; Taken surface |
| 3 | BREACH | full T1 affix pool; spawn caps up |
| 4 | CRITICAL | T2 elites (Volatile, Shielded, Mending) |
| 5 | CASCADE | "too cheap" rule tightens; mold storms |
| 6+ | "THE HOUSE NOTICED YOU" -> "IT'S WEARING YOUR FACE" -> TOTAL RESONANCE | endless escalation (HAHAHAHA lv 99) |
**Every tier-up is an event:** radio static crackle, a Board line in yellow ("The
Board is... monitoring your situation."), red flash, chanting layer intensifies.
RoR2 makes difficulty theatrical; so do we.
### Current tuning (M2 credit Director; evolves at M6)
c(t) = 0.05 + 0.0045 * t; tier = c / 0.25 (one tier per ~55s).
Enemy HP x (1 + 1.1c), contact damage x (1 + 0.55c).
Director income = 10 + 110c credits/sec; spawn cards: Mold Spore 6 (t>15s),
Hiss Staff 10, Hiss Brute 30 (t>40s). "Too cheap" rule: affordable cards below
35% of the bank are skipped; a bank above 2x the priciest card is spent mostly
on heavies (the RoR2 "director saved up" moment, released as a burst whenever
the horde thins). Credit cap 250. Enemy cap 260.
Contact hits carry a 0.5 s global i-frame so swarms cannot burst the guard down.
## 4. Weapons — Objects of Power (auto-cast, 4 lvls + 1 evolution each)
| OoP | Behavior | Altered Form (evolution) |
|---|---|---|
| Service Weapon: Spin | Rapid auto-projectiles at nearest | +Pierce passive -> *Spin: Corridor* (piercing ricochets) |
| Service Weapon: Shatter | Shotgun cone | +Black Rock -> *Shatter: Quarry* (knockback wall) |
| Service Weapon: Charge | Slow homing nuke on densest cluster | +Board Favor -> *Charge: Directive* (marks target, bonus dmg) |
| Rubber Duck | Persistent homing familiar | +Levitate -> *Duck Ascendant* |
| Floppy Disk | Blink trail damaging where you teleported | +Evade -> *Disk: Save State* (rewinds you 3s) |
| Benicoff TV | Broadcast beam sweeping a lane | +Shield -> *TV: Emergency Broadcast* (full-screen flash stun) |
| Hotline | Artillery strike on densest cluster | +Board Favor -> *Hotline: The Board Answers* (double strike, yellow beam) |
| Launch (telekinesis) | Debris auto-pelts random enemies | +Launch training -> *Launch: Mass Driver* |
| Jukebox | Sonic nova, knockback + charm chance | +Seize -> *Jukebox: Last Dance* (charmed enemies explode) |
| X-Ray Lightbox | Freeze/petrify cone | +Polaris -> *X-Ray: Diagnosis* (shatters frozen enemies) |
## 5. Passives ("perks")
Levitate (move speed), Evade (dash cooldown), Shield (regenerating barrier),
Black Rock Plating (armor), Polaris (regen + cleanse), Board Favor (rarity odds +
reroll), Seize (charmed kills), Maintenance Training (cooldowns).
## 6. Enemies
- **Hiss Corrupted Staff** — slow floaters, the iconic chanting crowd (basic).
- **Hiss Elevated** — teleports onto you (M2+).
- **Hiss Cluster** — stationary spitter (M2+).
- **Mold Spore** — fast weak swarm.
- **Mold Host** — tanky melee.
- **Threshold Creature** — glass cannon.
- **Taken** — Bright Falls AWE crossover (the AWE DLC makes this canon); shadow
figures that split on death.
- **Hiss Brute** — elite-tier heavy.
- **Elite affixes (Hiss-shifted):** Resonant (damage aura), Phasing (teleports),
Volatile (explodes on death), Shielded (black-rock shell), Mending (mold heals
nearby). T2 pool gates at high corruption.
**Bosses:** esseJ (mirror match using your own loadout), the Former (hand sweeping
the arena), Mold-1 (arena floods with mold), Hiss-Marshall (minions + heavy slams).
## 7. Floors, quests, keys, shop
Handcrafted room templates, randomized assembly (not full procgen):
1. **Maintenance** — tight corridors, mold.
2. **Research** — open labs, Hiss staff.
3. **Containment / Panopticon** — cells, Altered Item guardians.
4. **Executive** — finale, Hiss-Marshall, then Jesse arrives.
Each floor: OoP trial quest markers, side rooms (greed vs. corruption clock), a
Threshold Key somewhere (elite drop / side room / quest reward).
**Oceanview Motel between floors = shop:** turn off the lights, answer the phone,
a door opens — free flavor for a reroll shop. Rerolls = "Redacted intel".
## 8. Meta progression
Between runs, **Panopticon cells**: spend run score to unlock OoPs/passives into
the pool and starting loadout slots. Lateral unlocks, not stat creep.
## 9. Level-up Board Directives (M1 set)
THREAT ASSESSMENT (+20% damage), RAPID CYCLING (+15% fire rate), FIELD CONDITIONING
(+12% move speed), HARDENED VEST (+25 max HP, heal 25), RESONANCE ATTUNEMENT
(+40% pickup radius), PIERCING ROUNDS (+1 pierce).
## 10. Run end & modes
Reach the Executive floor = run won (canon ending: Jesse arrives). Death = run over.
**Endless Shift** after the finale. Score = "Containment Rating".