- Kept the default tactical camera in the projector blackout; lights go out ~2 s after crossing the screen (Pending phase with normal play/grace) - Removed the blackout task HUD (progress card, dots, instructions); replaced with close-range world-anchored FBC inspection placards for the screen, phones and the glass case - Fixed manual J/K/U presses feeling dead: queued a press while the skill is on cooldown and flashed the HUD stamp immediately; cleared the queue on autoplay toggle and during the pocket. Added a regression test - Added a --blackout-near-phone QA hook; updated design docs and README |
||
|---|---|---|
| .opencode/skills/blender-mcp-iterative | ||
| assets | ||
| docs | ||
| src | ||
| tests | ||
| third_party | ||
| tools/blender | ||
| .gitignore | ||
| CMakeLists.txt | ||
| ConcreteMaterial.blend | ||
| README.md | ||
| referance_4.jpeg | ||
| reference_3.jpeg | ||
| reference_ai.jpeg | ||
| reference_ai2.jpeg | ||
FBC: NIGHT SHIFT
A Control-universe real-time auto-brawler (Vampire Survivors-like) built in C++23 + raylib 6.2. You are a nameless worker in the Oldest House — an everyday FBC worker who never resonated when the others became Resonant. Move, and everything else is automatic: your Objects of Power fire on their own while the Oldest House decays around you in real time. (Jesse Faden walks into the Executive floor — that is the end of the run; the player is not Jesse.)
Signature mechanic: reach an Object of Power's ritual — complete it, and it
becomes your permanent skill for the run (Mega Man structure, Control skin).
Active skills — CONCRETE CALL ([J], hurls rubble at a crowd) and WARP
([K], magnetizes enemies together before collapsing them) — also autoplay
when the player isn't pressing their keys; pressing one takes manual control
briefly, and [L] switches autoplay off entirely. The HUD stamps show both
cooldowns and the shared mode.
Difficulty: Risk of Rain 2-style continuous Corruption scaling — the clock is the
enemy. See docs/GAME_DESIGN.md.
Projector-screen blackout: walk into the Projector Room's big screen and the
lights go out — twenty red-phone tables appear in the dark. Walk over all of
them and a glass case with a yellow Board roof materialises at the screen; step
inside to restore the lights and claim the FLUORESCENT Light Switch skill. See
docs/BLACKOUT_RITUAL.md.
Status
Pre-alpha vertical slice (M0–M2 plus the M3–M5 art/systems kickoff): move/dash +
autoshoot, 4 Objects of Power (levels + Altered Forms, enable/disable), level-ups
that roll offers as real-time HUD entries per GAME_DESIGN.md §2.2 (no picking —
the run is never paused), 4 enemy archetypes, corruption clock,
death screen. OoP rituals, scene-wide buffs/debuffs and world objects are in and
wired into the HUD. Cyan Resonance crystals are progression-only (XP) —
buffs and debuffs come from rituals and other world objects, never from a crystal.
The look is a brutalist 3D diorama with sculpted low-poly
Blender actors (no 2D standees or box kits). The player is a dedicated
reference-based, Blender-rigged FBC agent (yellow helmet, glowing respirator,
sage coveralls, radio, rifle with a red tip) with real Idle/Run/Dash/Fire
actions — taking a hit only tints the actor, it never staggers or stops the
walk; the horde uses procedural walk/stagger rigs,
hit/kill sparks and corruption-keyed post FX with half-res bloom. A single
tileable 2K concrete PBR set (generated by tools/blender/build_materials.py) is
shared by floor, curbs and pillars via one triplanar shader and one merged mesh.
Art is tracked in docs/ENV_ENHANCEMENT.md (S0–S16). The floor is now a
260 × 260 m Oldest House with an outer pillar grid and an open-plan Research
room (Blender-built desks, computers, chairs, meeting table, plants, sofas,
lamps and partitions); see src/render/layout.hpp for the shared anchors.
Playable Floor 01 (Security & Administration) is now the default run layout:
the walled blockout from docs/MAP_FLOW.md, authored in 160 × 120 m map space
and scaled by Floor::kScale (1.5) to a live 240 × 180 m, with Control-style
thermo thresholds between the main rooms — Security Gate →
Central Plaza (the original hub scene: carpet, pillars, OoPs) → Projector Room →
Office Suite (full S16 GLB office kit, right of Silos) → Silos → Threshold
Stairwell, plus four side rooms — with real wall collision, room-local spawning,
a Threshold Key in the Silos and a floor jump through the stairwell. Shared
layout/collision lives in src/game/floor.{hpp,cpp}; the old 260 m arena is kept
as the non-floor fallback. The Projector ritual now claims a permanent OoP skill,
and Clearance 01 gates the three side-room doors until that stamp is earned
(each side room pays a one-time reward). Details and outstanding gaps are in
docs/LEVEL_DESIGN_REVIEW.md.
Build & run
cmake -B build
cmake --build build -j6
./build/cntrl --seed 42
The window defaults to 1400×900 for everyday development — it fits under a
1080p desktop's top bar without being scaled down. --720p (1280×720) and
--1080p (1920×1080) are explicit test resolutions for perf/visual checks;
--dev returns to the default. The scene is shown with its raw palette by
default; pass --post-fx for the graded/bloomed/VHS look.
Dev tools: --bot (kiting autopilot), --no-damage (stress mode),
--uncapped (drop the 60 FPS target to measure headroom; F10 shows the profiler),
--screenshot <path> [--screenshot-at <sec>] for automated visual checks,
--hiss-test (close-up of one buffed Hiss Brute for shader look-dev),
--room-test (frozen look at the new open-plan room), --aoe-test (repeating
area blasts in the open-plan room for litter/destruction VFX look-dev),
--floor-overview (whole-floor overhead dev camera for the Floor 01 blockout),
--plaza-test (start in the central plaza hub scene), --office-test (start in
the office suite and inspect its destructible paper/bins),
--blackout-test (start inside the projector screen), --blackout-auto
(auto-answer the phones), --blackout-reveal (QA the glass case), --blackout-near-phone (QA inspection),
--fov <deg>, --cam-height <m> and --cam-forward <m> for camera framing captures; F12 saves a screenshot on
demand. Hiss corruption is visualised on enemies carrying an active
enemy-channel buff (burn/slow/vulnerable/resonance) and on Objects of Power.
The dev HUD has a draggable CAMERA DEV panel (bottom right): FOV, camera
height and forward offset, with [ ], - = and , . keyboard shortcuts;
F9 hides it.
raylib 6.2 is fetched automatically by CMake (FetchContent). Needs a C++23 compiler (GCC 13+) and OpenGL/X11 dev headers (already required by GLFW).
Level editor
The editor is a separate binary (editor) and shares only the raylib-free
level_core library with the game:
cmake --build build -j6
./build/editor # loads assets/levels/floor01.json
./build/editor --level my_level.json
./build/editor --level my_level.json --game ./build/cntrl
LMB selects/drags props, RMB orbits, MMB pans, wheel zooms, F frames the
level. Keys 1–4 switch between Select, Wall, Door and Decor tools: walls
and doors are drawn by clicking two ground points, decor is dragged from the
asset browser (all GLBs under assets/models/) into the 3D view. Del deletes
the selection, Ctrl+Z/Ctrl+Y (Ctrl+Shift+Z) undo/redo, Ctrl+S saves,
Tab toggles the inspector, Esc quits. Deleting a wall segment opens a gap
which can be restored from the inspector. See docs/LEVEL_EDITOR.md for the
full key map and field reference.
The inspector (right dock) edits every field of the current selection:
prop kind, position, size, yaw, scale, model, solid/destructible; wall
lines and gaps; doors; rooms; rituals; thermo doors; and the spawn/key/exit
anchors. With nothing selected it edits the level name and map dimensions.
The validation panel runs a walkable-grid flood fill from the spawn (with
gated doors both open and closed) and reports unreachable rooms, the key or
the exit, overlapping rooms, duplicate ids and missing models.
Ctrl+P saves if needed and launches the game on the current level
(cntrl --level <path>), so drafts can be playtested without baking. The
level file is the authoring source of truth; Floor 01 is baked into the
client at build time (src/game/level_baked.hpp, regenerated by
level_tool --bake when the JSON changes), so cntrl ships without a level
file dependency. Baking refuses invalid levels:
./build/level_tool --dump-floor01 assets/levels/floor01.json
./build/level_tool --check assets/levels/floor01.json
./build/level_tool --validate assets/levels/floor01.json
cmake --build build --target check_level
cmake --build build --target bake_level
ctest --test-dir build --output-on-failure
tools/blender/import_level.py reads the same level JSON and rebuilds a
reviewable blockout in Blender (rooms, walls, doors, imported GLB props,
anchors and ritual markers), saved to
assets/blender/fbc_level01_blockout.blend. It can be run headlessly or
through the Blender MCP connection (exec(open(".../import_level.py").read()));
set CNTRL_LEVEL to import a different level file.
Controls
| Input | Action |
|---|---|
| WASD | Move |
| Stick (XInput/GLFW, M7) | Move |
| Shift / Space | Dash (Evade) |
| J / gamepad Y | CONCRETE CALL — hurl a pile of concrete at the nearest crowd |
| K / gamepad B | WARP — magnetize enemies together, then collapse them |
| U / gamepad face-left | FLUORESCENT (earned in the projector-screen blackout) |
| L / gamepad Back | Toggle skill autoplay (AUTO / MANUAL / OFF on the HUD stamps) |
Skill keys fire immediately when ready; if autoplay has spent the cooldown the press is queued until it recovers, and the HUD stamp flashes on every press. | R | Restart run (on death) | | Esc | Quit |
Documentation
docs/GAME_DESIGN.md— vision, core loop, OoPs, enemies, corruption systemdocs/MAP_FLOW.md+docs/maps/— 7-floor run flow brainstorm and 2D maps (floor_01_security.svg/png,oldest_house_flow.svg/png)src/game/floor.{hpp,cpp}— playable Floor 01 room/wall/prop data, collision and spawn helpersdocs/ART_DIRECTION.md— the 3D-env + low-poly-actor diorama look, UI, audiodocs/TECHNICAL.md— stack, architecture, module mapdocs/LEVEL_DESIGN_REVIEW.md— 2D map vs. client audit, findings and fix statusdocs/BLACKOUT_RITUAL.md— projector-screen blackout: 20 phones, glass case, Light Switch OoPdocs/ROADMAP.md— milestones M0–M7 and current statusdocs/concept/— rendered Blender concept frames (visual target for M5)docs/ENV_ENHANCEMENT.md— enhancement slices S0–S17 for the environment/actorsConcreteMaterial.blend+tools/blender/bake_cgtrader_concrete.pyandprocess_concrete_maps.py— CGTrader concrete source and the reproducible 2K bake/post-process used by floor/walls/pillarstools/blender/— procedural diorama + actor builders (actor_kit.pyloft/sweep/blob/crystal helpers) and render scriptsassets/models/— game-ready GLB actors (agent.glbis the rigged/animated player fromtools/blender/build_agent.py, plus enemies and cyan resonance point crystal),props/OoP set dressing and the S16 open-room kit (tools/blender/build_room_props.py)assets/textures/concrete/— shared seamless albedo/normal/roughness mapsassets/textures/actor/actor_ramp.png— Blender-generated stylised lighting rampassets/blender/fbc_corruption_wave.blend— reusable SDF wave reference scene
IP note
FBC / Control / Oldest House are Remedy Entertainment's intellectual property. This is a non-commercial fan project.