Instruction file imported from zqyoiv/hyz-space-2026 (
.cursor/rules/tunnel-config.mdc). Copyright stays with the author.
Tunnel spaces
- Per-tunnel behavior and content (steps, optional
steps[].stepBackgroundBundled,floorTextureOpacityByStopfor textured-floor fade per stop, colors, vignette,titleStepBackgroundBundled,floorMapBundled, interaction, scene):public/risingriver.config.jsononly. Keys matchprojects.config.jsonprojectidwherespaceTypeis"tunnel". - Vite-bundled assets (any string id referenced from that JSON): register in
src/tunnel/tunnelBundledRegistry.js. Do not hardcodeprojectId === "…"or tunnel-specific imports inProjectSpace.jsx. - Merging / defaults:
src/tunnel/initTunnelConfig.js. ProjectSpace.jsx: generic tunnel viewer; it readstunnelCfgand registry maps only.
When adding a new tunnel or asset: update risingriver.config.json, add imports + id to tunnelBundledRegistry.js, and extend initTunnelConfig if new top-level fields are needed.
