Replace the tracked JSON-in-header bake with a deterministic, bounds-checked CLB binary cooked by the build step. cntrl now loads only the binary; direct JSON loading is restricted to debug builds. Add codec/CLI tests, binary checker, editor bake-on-playtest, and pipeline docs. |
||
|---|---|---|
| .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 pre-alpha, Control-flavoured auto-brawler. Move — everything else fires itself while the Oldest House decays in real time.
You are a nameless FBC worker who never resonated. Your Objects of Power have a life of their own; the real enemy is the corruption clock. Floor 01 is a hand-authored 240 × 180 m blockout with three Beacons to find and ignite — the run's current objective.
Highlights
- Move-only combat — WASD + dash, four auto-firing OoPs. Press
J/Kto steer them,Lto toggle autoplay. - Rituals as rewards — complete an OoP's ritual and it becomes a permanent skill for the run (Mega Man structure, Control skin).
- Three Beacons — aged grey monuments; walk within 2.5 m to ignite one in a bright red Hiss wave. The third fires a placeholder event, pending design.
- Projector blackout — walk into the screen, answer twenty red phones in the dark, claim FLUORESCENT.
- Corruption clock — Risk of Rain 2-style scaling; level-up offers roll as real-time HUD stamps, never pausing the run.
- Built, not kitbashed — rigged/animated Blender agent, sculpted low-poly enemies and props, one seamless 2K concrete PBR set, hard shadows and half-res bloom.
Run it
cmake -B build && cmake --build build -j6
./build/cntrl --seed 42 # 1400×900 default
./build/cntrl --seed 42 --post-fx # graded + bloom
./build/cntrl --seed 42 --shadows off # compare lighting
C++23 (GCC 13+) and OpenGL/X11 headers; raylib 6.2 is fetched by CMake. Automated captures: --screenshot /tmp/shot.png --screenshot-at 8. Dev QA: --floor-overview, --beacon-test, --plaza-test, --bot, --no-damage, --trace all; full flag list in src/main.cpp. F12 saves a screenshot.
Controls
| Input | Action |
|---|---|
| WASD / stick | Move |
| Shift / Space | Dash (Evade) |
| J / K | CONCRETE CALL — hurl rubble at a crowd / WARP — collapse enemies together |
| U | FLUORESCENT (earned in the projector blackout) |
| L | Toggle skill autoplay (AUTO / MANUAL / OFF) |
| R / Esc | Restart on death / quit |
Level data & tools
assets/levels/floor01.json is the authoring source of truth: designers and scripts edit JSON, the build step cooks it into a checksummed binary (level_tool --bake, target bake_level), and cntrl loads only that binary at runtime. Debug builds accept --level <file.json> for hot-reload iteration. Validate with cmake --build build --target check_level and ctest --test-dir build --output-on-failure. The standalone level editor is local-only and not included. tools/blender/ holds reproducible asset generators, and import_level.py rebuilds a Blender blockout from the level JSON. See docs/LEVEL_DATA_PIPELINE.md for the full schema.
Layout
src/core — math, events, RNG · src/game — fixed 60 Hz sim · src/level — data and validation · src/render — raylib presentation · assets — GLBs, textures, shaders · docs — design and art notes.
Docs
docs/GAME_DESIGN.md— vision, loop, OoPs, corruptiondocs/MAP_FLOW.md+docs/maps/— run flow and 2D mapsdocs/BLACKOUT_RITUAL.md— projector-screen phone puzzledocs/LEVEL_DESIGN_REVIEW.md— map vs. client auditdocs/LEVEL_DATA_PIPELINE.md— JSON authoring → cooked binary → runtime loaddocs/ART_DIRECTION.md+docs/concept/— visual targetdocs/GAME_DESIGN_PASS.md— recent design changes, including the Beacon passdocs/ROADMAP.md— milestones M0–M7
Status
Pre-alpha vertical slice: playable Floor 01, four OoPs, four enemy archetypes, rituals, side rooms, and the Beacon objective. Still open: six more floors, bosses, audio and meta progression. The third-Beacon event is deliberately a placeholder until its design is settled.
IP note
FBC / Control / Oldest House are Remedy Entertainment's intellectual property. Non-commercial fan project.