cntrl/docs/GAME_DESIGN.md

340 lines
18 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 — 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 **real-time auto-brawler** (Vampire Survivors heritage) in the Control universe:
you move with WASD or a stick while your Objects of Power autoshoot. Skills are
enabled and disabled in real time and nothing pauses — the run is never
interrupted.
The player is a **nameless worker in the Oldest House** — an everyday FBC worker
who never resonated when the other class employees became Resonant. That silence
is why he's still an FBC worker instead of the Director.
The setting is the night just before Jesse Faden becomes Director: the run ends
when Jesse walks into the Executive floor (radio: "Ma'am? ...Ma'am, who are you?")
— the player is **not** Jesse.
We battle Hiss-corrupted people ("taken" staff), monsters from thresholds,
run quests for Objects of Power, find keys to open new floors, and fight elite
tiers. Every buff and debuff lives on the scene (ECS-like; see §4.5).
Tone slot: as above — radio chatter, Ahti chores, redacted documents as pickup
lore, the Board adjudicating your upgrades.
**Working title:** FBC: NIGHT SHIFT (alternates: OLDEST HOUSE: BREACH,
AWE: NIGHT SHIFT, CONTROL: BREACH PROTOCOL).
## 2. Core loop
1. **Move (WASD or stick), auto-fight.** Dash = *Evade*. Owned Objects of Power
fire on their own cooldowns/targeting rules; each can be enabled or
disabled in real time. **Magnets:** kills drop Resonance Shards that pull
toward the player (inside `pickup_radius`); with **world objects**
(§4.6), the magnet catch applies the object's effect automatically. **No
pause:** enemy spawn, floor scaling, ritual triggers and skill acquisition
advance while the player thinks (the only transitions are quest markers and
ritual encounters).
2. **Kill Hiss -> Resonance Shards (XP) -> Level Up.** New Directives/Rituals/
Tune-ups roll as real-time HUD offers when XP crosses a threshold and
apply automatically when the player is idle for a while — nothing is
picked, the run never pauses. In parallel, the House scatters **world
objects of power — SCP-like items** (§4.6); when caught, they apply
automatically — the player has no way to tell beforehand what they are.
3. **OoP Rituals — the signature mechanic (manual OoPs only).** A quest marker
appears ("OoP detected: RESEARCH FLOOR — TV SET"). Reach it -> **start the
ritual** — a ritual-in-progress indicator appears (e.g.
`RITUAL IN PROGRESS — TV — WAITING`). Complete it -> **the OoP becomes your
skill/weapon permanently for the run.** Mega Man structure: you don't buy
powers, you survive them. (World objects from §4.6 are the other way to get
new powers — by catching.)
**Ritual MVP (TV):** when the player reaches the TV, the ritual starts and
the player stays around — 60 s later the TV is live (a debuff-clearing
Buff). The ritual system is singular — one active ritual per run; it is
replaced when a new one starts.
**Lightswitch ritual (the complex ritual, §2.3 design):** the fluorescents
along the beam strips darken as the House decays (ART_DIRECTION S0 — "one
wall strip and one beam strip dark"). A lightswitch stands at
`kLightSwitchPos` near the dead beam strip (diorama world, z = −8). The House
flipped it into the dead sector; the guard flips it back — by catching with
the magnet, not by hand. Flow (the TV MVP states generalize — nothing
pauses, the run advances throughout):
- **Start:** when the player reaches the switch
(`distance(player.pos, kLightSwitchPos) <= kSwitchRadius` = 3 m) the ritual
starts; HUD: `RITUAL IN PROGRESS — LIGHT SWITCH — CATCHING (0/3)`.
- **Bait:** on start the ritual drops 3 **bait world objects** in a ring of
radius 2.5 m around the switch ("the House drops objects near its broken
switches as bait"). They are consumable world objects — catching one
applies its §4.6 effect — and they are the ritual's counters.
- **Catch:** the player uses the magnet (Evade/pickup) to catch the bait —
"catch a few objects near the switch". A catch counts when its bait
leaves the world-object pool (picked up).
- **Activate:** the last catch activates — the fluorescents revive:
the presenter draws the beam strip near the switch as lit (the switch
plate reads bright). Mechanically, the **Fluorescent Light** reward —
`BuffSystem::apply` on every enemy within `kLightRadius` (4 m) of the
switch: `damage_taken_mult = 1.25f` for 12 s, name "FLUORESCENT LIGHT"
(§4.5/§4.6 catalog). Light burns the House.
- **Claim:** the ritual completes → the OoP becomes skill/weapon permanently
for the run — the §2.3 MVP channel: ritual offers roll as real-time HUD
offers when XP crosses a threshold (§2.2) and apply automatically when
the player is idle.
Numbers: `kLightSwitchPos = {0, −8}`; switch radius 3.0 m; object ring
radius 2.5 m; 3 bait; light radius 4.0 m; light duration 12 s; enemy
`damage_taken_mult` 1.25; catch displayed as "CATCHING (n/3)".
Edge cases: bait spawns bypass the random-rate roll (the ritual is a quest,
not scatter); if the world-object cap blocks a bait, the ritual completes
after the remaining catches (`required = 3 − failed_spawns`); the switch is
a new prop (`ActorModel::Switch`, S11 props pipeline — presenter fallback
draws a plate until art lands); the HUD completes with
`RITUAL COMPLETE — Fluorescents revived`.
4. **OoP Evolutions:** OoP lv4 + a specific passive = **Altered Form** (build-crafting
layer).
5. **Floors get progressively harder** (§3 corruption escalation) and each floor
has **Threshold Keys** (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.
**Skill acquisition is real-time, not a pause:** when XP crosses a threshold,
the new offer pool rolls and the offers appear on the HUD (RoR2 "intrinsics"
analog). Each offer auto-applies when the player hasn't reacted for N seconds;
the run continues (corruption, spawns, ritual triggers) throughout — nothing
is picked on a pause screen.
**Skill management:** every owned OoP has an enabled/disabled flag. Enabled
means "fires on cooldown" (auto-implemented, like Vampire Survivors); disabled
means dormant. There is no separate hotkey-driven skill wheel to open during
the run — toggling happens in the OoP loadout (HUD).
## 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 ritual**. 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.
- **Floor jump is wired to the run structure:** `Corruption::floor_cleared()`
increments `floors_` when a floor's Threshold Key is taken (§7), so the RoR2
exponential loops map onto sectors of the run.
### 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-fire when enabled; levels + evolutions each)
**Design note:** an OoP is a *component-style bonus* (see §4.5): when enabled it
acts on the scene, applying player stat mods (damage, speed, regen, armor…) and
— importantly — debuffs on enemies. When disabled it goes dormant until
re-enabled.
| 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) |
## 4.5. Buffs & Debuffs (scene-wide, ECS-like)
Buffs and debuffs are real-time, entity-component-system parts of the world —
not just player stat edits. Design:
- **Subject:** player (id −1) or a specific enemy.
- **`BuffEffect`:** stat multipliers + instant effects, e.g. `speed_mult`,
`damage_mult`, `hp_mult`, `player_dmg_mult`, `regen`, `armor_bonus`,
`confuse_prob`, `slow_frac`, `dot_dps`, `immune_to_hiss`, `taken`…
- **Duration:** 0 = permanent, else seconds; when it lapses it is removed.
- **Systems:** `BuffSystem::apply(subject, effect, duration)` + `update()`;
per-frame bundles recompute: `Player::mods` (damage/speed/regen/armor/
confusion resistance…) and `Enemy::mods` (speed, damage, hp, confuse, slow,
dot…). UI: floating icons over the player + enemies with duration bars.
**Proposed catalogs (RoR2-inspired, expandable):**
| Buff | Subject | Effect |
|---|---|---|
| Damage Amplification | player | damage mult up (additive, stackable) |
| Speed Surge | player | speed mult up |
| Fire Rate (x%, scale with level) | player | fire rate mult up |
| Regeneration | player | +X HP/s while active |
| Armor Plate | player | +X armor (stackable) |
| Confusion Immunity | player | confusion/stun immune |
| Slow | enemy | speed fraction (e.g. −60%) |
| Dot | enemy | small continuous damage per second |
| Vulnerable | enemy | +X% damage taken |
| Confused | enemy | steers toward player while attacking |
| Immune | enemy | resonance immune (T1 variant) |
| Taken | enemy | silent until the player is nearby; pulls the player |
| Fluorescent Light (event) | enemies within light radius | damage_taken_mult ×1.25 (12 s) — the lightswitch revival reward |
**Apply points:**
- Elite tiers / T1 elasticity (§3, §6): resonant, phasing, shielded, mending,
volatile specials map to the catalog.
- Time events: tier-up pulses, shop offers.
- **World objects** (§4.6) — magnet catch applies the effect immediately; the
player has no way to tell beforehand.
## 4.6. World Objects of Power — random SCP-like items (catch = apply)
The House scatters **world objects of power** — small SCP-like artifacts on the
floor (a glow + a flavor name). They are not manual OoPs — no ritual, no
evolution, no level. The mechanic: **magnet pickup = application**
(`PickupSystem`, §2.1). When the magnet reaches one, it is consumed and the
object applies its effect — to the player, or to the nearest enemy if one is
nearby (`BuffSystem::apply(subject, effect, duration)`).
- **Enemy channel** (implemented): objects caught near enemies apply to them —
`ENEMY_SLOW` (−40% speed, 20 s), `ENEMY_BURN` (enemy burns 0.4 DPS, 25 s),
`ENEMY_VULNERABLE` (+30% damage taken by enemies, 25 s), `ENEMY_IMMUNE`
(resonance immune, 10 s).
- **Unidentified** ("the player wouldn't know when for now"): the player cannot
tell what a world object is before catching. No hover/inspect UX yet; the
only "reveal" is experience. Visuals like glow-color coding = optional
(§ART_DIRECTION).
- **Player channel (debuffs):**
- `Slow` — player −35% move speed (30 s)
- `Confuse` — confusion ×4, enemies pull the player (10 s)
- `Taken` — pulls the player toward enemies, immune while near (12 s)
- `Dot` — nearby enemies deal 1.5–2.5 DPS (20 s)
- `Vulnerable` — enemies deal +30% damage to the player (25 s)
- **Enemy channel (debuffs):**
- `Slow` — enemies −40% speed (20 s)
- `Dot` — enemy burns 0.4 DPS (25 s)
- `Vulnerable` — enemies +30% taken damage (25 s)
- `Immune` — resonance immune (10 s)
- **Spawn rules:**
- Enemy deaths drop world objects around the corpse (the player can't
always outrun freshly killed ones).
- The director scatters some on the ring (15–21 m, RoR2 analog).
- Cap: ~15 active world objects; rate scales with c (x1 + 1.5c) so the floor
"fills with junk" mid-run.
- **Balance notes:** player HP is 100 — confusion/slow/vulnerable accepted
tension; watch confusion chains on early run; cap object-stacked effects
(e.g., max 3 `Vulnerable` from objects).
- **Interaction with elite auras (§3, §6):** world objects are the same system —
one channel, no double-count.
## 5. Passives ("perks")
*(flat player components, same mechanical space as §4.5; the component
pipeline is the §4.5 style.)*
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).
*(Proposed additions, using the §4.5 mechanisms:)* Evade (shorter dash cooldown),
Shield (regenerating barrier, additive), Polaris (regen + cleanse debuffs),
Seize (charmed kills + bonus damage).
## 6. Enemies
Enemies are entities; base stats are a table, and their damage/speed/hp run
through the `EnemyMods` bundle from Buffs (§4.5): elite affixs are simply
buffs applied at spawn.
- **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 ritual 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. Board Directives (M1 set) — offered, not picked
The Board's Directive buffs roll as real-time HUD offers when XP crosses a
threshold (§2.2) and apply automatically when the player is idle — there is
no picking on a pause screen, since the run never pauses; the buffs are
scene effects, not a picked component list.
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".