FBC: NIGHT SHIFT - docs: refresh README, art/technical direction for S9-S15
This commit is contained in:
parent
27ee3baf65
commit
149ebf5ba1
3 changed files with 59 additions and 32 deletions
21
README.md
21
README.md
|
|
@ -14,15 +14,16 @@ enemy. See `docs/GAME_DESIGN.md`.
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
Pre-alpha vertical slice (M0–M2 plus the M5 art kickoff): move/dash + autoshoot,
|
Pre-alpha vertical slice (M0–M2 plus the M3–M5 art/systems kickoff): move/dash +
|
||||||
4 Objects of Power (levels + Altered Forms, enable/disable), real-time skill
|
autoshoot, 4 Objects of Power (levels + Altered Forms, enable/disable), real-time
|
||||||
offers on level-up (no pause), 3 enemy archetypes, corruption clock,
|
skill offers on level-up (no pause), 3 enemy archetypes, corruption clock,
|
||||||
death screen. Floors & rituals (M3), world objects (M4), debuffs/buffs system
|
death screen. OoP rituals, scene-wide buffs/debuffs and world objects are in and
|
||||||
(M4). The look is a brutalist 3D diorama
|
wired into the HUD. The look is a brutalist 3D diorama with **sculpted low-poly
|
||||||
with **sculpted low-poly Blender actors** (no more 2D standees or box kits) and corruption-keyed post
|
Blender actors** (no 2D standees or box kits), procedural walk/stagger rigs,
|
||||||
FX. A single tileable 2K concrete PBR set (generated by
|
hit/kill sparks and corruption-keyed post FX with half-res bloom. A single
|
||||||
`tools/blender/build_materials.py`) is shared by floor, curbs and pillars via one
|
tileable 2K concrete PBR set (generated by `tools/blender/build_materials.py`) is
|
||||||
triplanar shader and one merged mesh. Art is tracked in `docs/ENV_ENHANCEMENT.md`.
|
shared by floor, curbs and pillars via one triplanar shader and one merged mesh.
|
||||||
|
Art is tracked in `docs/ENV_ENHANCEMENT.md` (S0–S15).
|
||||||
|
|
||||||
## Build & run
|
## Build & run
|
||||||
|
|
||||||
|
|
@ -57,7 +58,7 @@ raylib 6.2 is fetched automatically by CMake (FetchContent). Needs a C++23 compi
|
||||||
- `docs/TECHNICAL.md` — stack, architecture, module map
|
- `docs/TECHNICAL.md` — stack, architecture, module map
|
||||||
- `docs/ROADMAP.md` — milestones M0–M6 and current status
|
- `docs/ROADMAP.md` — milestones M0–M6 and current status
|
||||||
- `docs/concept/` — rendered Blender concept frames (visual target for M5)
|
- `docs/concept/` — rendered Blender concept frames (visual target for M5)
|
||||||
- `docs/ENV_ENHANCEMENT.md` — enhancement slices S0–S6 for the environment/actors
|
- `docs/ENV_ENHANCEMENT.md` — enhancement slices S0–S15 for the environment/actors
|
||||||
- `tools/blender/` — procedural diorama + actor builders (`actor_kit.py` loft/sweep/blob/crystal helpers) and render scripts
|
- `tools/blender/` — procedural diorama + actor builders (`actor_kit.py` loft/sweep/blob/crystal helpers) and render scripts
|
||||||
- `assets/models/` — game-ready GLB actors (guard, 3 enemies, resonance shard) and `props/` OoP set dressing
|
- `assets/models/` — game-ready GLB actors (guard, 3 enemies, resonance shard) and `props/` OoP set dressing
|
||||||
- `assets/textures/concrete/` — shared seamless albedo/normal/roughness maps
|
- `assets/textures/concrete/` — shared seamless albedo/normal/roughness maps
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,10 @@ units are little free-standing puppets rather than printed cards:
|
||||||
when floating and are lit by the House's fluorescent key.
|
when floating and are lit by the House's fluorescent key.
|
||||||
- **Actors are authored in Blender** (`tools/blender/build_enemies.py`), exported as
|
- **Actors are authored in Blender** (`tools/blender/build_enemies.py`), exported as
|
||||||
GLB to `assets/models/` and lit in-engine by `assets/shaders/actor.{vs,fs}`.
|
GLB to `assets/models/` and lit in-engine by `assets/shaders/actor.{vs,fs}`.
|
||||||
`UpdateModelAnimation` remains the upgrade path for animated bosses.
|
Walk/stagger/blob/crystal motion is done in the vertex shader from local
|
||||||
|
vertex position (one draw call per actor, no skeleton); `UpdateModelAnimation`
|
||||||
|
remains the upgrade path for animated bosses. Props live in
|
||||||
|
`assets/models/props/` and get restrained idle motion in the presenter.
|
||||||
|
|
||||||
## Palette
|
## Palette
|
||||||
|
|
||||||
|
|
@ -32,8 +35,10 @@ units are little free-standing puppets rather than printed cards:
|
||||||
|
|
||||||
## Camera
|
## Camera
|
||||||
|
|
||||||
Fixed tactical three-quarter view following the guard; long-ish lens (fovy ~45
|
Fixed tactical three-quarter view following the guard: fovy 48, camera height 18
|
||||||
grey-box, ~30 target feel). Slight screen shake on hits (presentation-only RNG).
|
and forward offset 14. Horde awareness beats close-up detail. Slight screen
|
||||||
|
shake on hits (presentation-only RNG); the camera target is clamped a few metres
|
||||||
|
inside the curb so the play area never shows the unlit floor beyond the wall.
|
||||||
|
|
||||||
## UI as bureaucracy
|
## UI as bureaucracy
|
||||||
|
|
||||||
|
|
@ -51,14 +56,17 @@ real time:
|
||||||
- Environment: fluorescent lights fail sector by sector, red geometry floats
|
- Environment: fluorescent lights fail sector by sector, red geometry floats
|
||||||
through walls, signage turns to chanting glyphs.
|
through walls, signage turns to chanting glyphs.
|
||||||
- Audio: chanting/moan layers mix in with `c`; radio chatter gets desperate.
|
- Audio: chanting/moan layers mix in with `c`; radio chatter gets desperate.
|
||||||
- Standee idle animations jitter harder; the guard's breathing becomes audible.
|
- Actor shader jitter grows on Hiss/Mold units; the guard's breathing becomes
|
||||||
|
audible; hit/kill sparks and tier-up bursts light the room.
|
||||||
- **Tier-up events are theatrical:** red flash, radio static, a Board line in yellow.
|
- **Tier-up events are theatrical:** red flash, radio static, a Board line in yellow.
|
||||||
|
|
||||||
## Post FX
|
## Post FX
|
||||||
|
|
||||||
Render to `RenderTexture`, full-screen shaders: VHS scanlines/noise, chromatic
|
Render to `RenderTexture`, then a half-res bright-pass + separable blur
|
||||||
aberration on damage, red resonance pulses. Cheap in raylib, huge style payoff.
|
(`bloom_bright.fs` / `bloom_blur.fs`), then a full-screen grade in `post_fx.fs`:
|
||||||
(`assets/shaders/`)
|
VHS scanlines/noise, restrained chromatic aberration (kept low so the HUD stays
|
||||||
|
legible), red resonance pulses, teal-shadow/warm-highlight split and vignette.
|
||||||
|
Cheap in raylib, huge style payoff. (`assets/shaders/`)
|
||||||
|
|
||||||
## Fonts (OFL-licensed only)
|
## Fonts (OFL-licensed only)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@
|
||||||
6.2 is the current release (Oct 2026) and fixed CMake-4.x build issues; builds
|
6.2 is the current release (Oct 2026) and fixed CMake-4.x build issues; builds
|
||||||
GLFW from source (X11/GL dev headers required). raylib 6.x adds the Image/Draw API
|
GLFW from source (X11/GL dev headers required). raylib 6.x adds the Image/Draw API
|
||||||
alignment (procedural textures) and skeletal model animation (`UpdateModelAnimation`,
|
alignment (procedural textures) and skeletal model animation (`UpdateModelAnimation`,
|
||||||
GLTF/IQM/M3D) — the per-unit upgrade path from standees to animated bosses.
|
GLTF/IQM/M3D) — an upgrade path for animated bosses; current actors use
|
||||||
|
shader-side procedural rigs instead, which keep one draw call per actor.
|
||||||
- No other third-party deps until they earn their place. Data lives in C++ tables
|
- No other third-party deps until they earn their place. Data lives in C++ tables
|
||||||
(JSON only when content volume demands it).
|
(JSON only when content volume demands it).
|
||||||
|
|
||||||
|
|
@ -16,10 +17,14 @@
|
||||||
|
|
||||||
```
|
```
|
||||||
CMakeLists.txt
|
CMakeLists.txt
|
||||||
assets/{sprites,env,fonts,audio,shaders}
|
assets/models/ # sculpted GLB actors + props/ OoP set dressing
|
||||||
docs/ # this is the design source of truth
|
assets/shaders/ # actor, concrete, aura, bloom_*, post_fx
|
||||||
|
assets/textures/ # concrete/ PBR set, actor/ lighting ramp LUT
|
||||||
|
assets/blender/ # source .blend scenes
|
||||||
|
tools/blender/ # actor_kit, build_enemies/props/materials/scene, build_lut
|
||||||
|
docs/ # this is the design source of truth
|
||||||
src/
|
src/
|
||||||
main.cpp # CLI (--seed N), window, fixed-tick loop
|
main.cpp # CLI (--seed N), window, fixed-tick loop, bloom render targets
|
||||||
core/ # NO raylib includes here. math, rng (PCG32), events
|
core/ # NO raylib includes here. math, rng (PCG32), events
|
||||||
game/ # NO raylib includes here. simulation
|
game/ # NO raylib includes here. simulation
|
||||||
input.hpp # InputState contract (filled by main from raylib)
|
input.hpp # InputState contract (filled by main from raylib)
|
||||||
|
|
@ -28,9 +33,14 @@ src/
|
||||||
enemies.* # archetypes, AI steering + separation, contact damage
|
enemies.* # archetypes, AI steering + separation, contact damage
|
||||||
weapons.* # auto-fire, projectiles, targeting
|
weapons.* # auto-fire, projectiles, targeting
|
||||||
pickups.* # XP shards, magnet
|
pickups.* # XP shards, magnet
|
||||||
|
buffs.* # scene-wide buffs/debuffs (ECS-like)
|
||||||
|
ritual.* # OoP ritual quest flow
|
||||||
game.* # Game class: state machine, fixed-tick update, level-ups
|
game.* # Game class: state machine, fixed-tick update, level-ups
|
||||||
render/ # raylib lives here only (+ main.cpp)
|
render/ # raylib lives here only (+ main.cpp)
|
||||||
presenter.* # 3D diorama camera, billboards, blob shadows, world bars
|
presenter.* # 3D diorama camera, actor draws, sparks, blob shadows, bars
|
||||||
|
models.* # GLB bank + gradient-ramp actor shader + limb rig uniforms
|
||||||
|
concrete.* # one merged triplanar PBR mesh for floor/curbs/pillars
|
||||||
|
aura.* # reusable SDF ground waves for tier-ups / bosses
|
||||||
ui.* # HUD, Board Directive cards, death screen
|
ui.* # HUD, Board Directive cards, death screen
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -55,16 +65,23 @@ src/
|
||||||
|
|
||||||
## Rendering pipeline (hybrid)
|
## Rendering pipeline (hybrid)
|
||||||
|
|
||||||
- `Camera3D` three-quarter view following the player.
|
- `Camera3D` three-quarter view (fovy 48) following the player, target clamped
|
||||||
- Ground slab + `DrawGrid` + procedural box pillars/walls (brutalist kit).
|
inside the arena curb so the unlit outer floor never dominates the frame.
|
||||||
- **Blob shadows** (flattened cylinders) — no shadow maps in raylib core; blob
|
- **One merged triplanar concrete mesh** (`concrete.*`) for floor, curbs, pillars
|
||||||
shadows *reinforce* the standee look, not a compromise.
|
and door frame, sharing one tileable 2K PBR set from `build_materials.py`.
|
||||||
- **2D standees:** `DrawBillboard` with a procedurally generated soft-disc texture
|
- **Sculpted GLB actors** (`models.*`, `assets/models/`) lit by a gradient-ramp
|
||||||
(`GenImageGradientRadial`), tinted per entity; manual back-to-front sort by camera
|
shader with faction rims and a procedural limb rig (`uRigMode` 1 humanoid,
|
||||||
distance (raylib billboards need explicit draw order).
|
2 blob, 3 crystal) — no skeletons, no extra draw calls. Hiss actors also get a
|
||||||
- **UI anchoring:** `GetWorldToScreen` for health bars over entities.
|
cheap expanded-backface ink outline.
|
||||||
- Post FX (M5): draw to `RenderTexture`, full-screen shaders (VHS, chromatic
|
- **Blob shadows** (flattened cylinders) — no shadow maps in raylib core; they
|
||||||
aberration) with uniforms keyed to the corruption coefficient.
|
ground the puppets without cost.
|
||||||
|
- **Sparks / glows / world objects** are camera-facing billboards using one
|
||||||
|
procedural glow sprite; damage numbers and health bars use `GetWorldToScreen`.
|
||||||
|
- Post FX: scene into a full-res `RenderTexture`, half-res bright pass + separable
|
||||||
|
blur for bloom, then `post_fx.fs` (VHS noise, mild aberration, red Hiss tint,
|
||||||
|
teal/warm grade, vignette) keyed to the corruption coefficient. HUD is drawn
|
||||||
|
into the same target so post FX applies to it too — aberration is kept low to
|
||||||
|
preserve legibility.
|
||||||
|
|
||||||
## Conventions
|
## Conventions
|
||||||
|
|
||||||
|
|
@ -84,4 +101,5 @@ src/
|
||||||
- `--bot` kiting autopilot: seeks shards, repels enemies, dashes, auto-picks the
|
- `--bot` kiting autopilot: seeks shards, repels enemies, dashes, auto-picks the
|
||||||
first Directive (implemented — validation tool and the seed of the M6
|
first Directive (implemented — validation tool and the seed of the M6
|
||||||
balance-bot).
|
balance-bot).
|
||||||
|
- `--no-damage` stress mode for horde/pacing captures (implemented).
|
||||||
- `--headless --bot-runs N` pacing telemetry (planned M6).
|
- `--headless --bot-runs N` pacing telemetry (planned M6).
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue