Back to projects
Jan 25, 2026
4 min read

I Wish I Was Brave

Luau survival-horror game jam entry featuring sliding-window room generation, a multi-stimulus fear system, and a custom cutscene framework
I Wish I Was Brave Banner

Built for a week-long HiddenDevs game jam themed around “Wish” (January 19-25, 2026), I Wish I Was Brave (IWIWB) is a first-person survival horror game where a child ventures through a dreamscape tunnel to reach Room 20 armed with only a flashlight and a pistol. After bootstrapping the codebase on Day 1 with foundational systems adapted from Cozy Cuddle, a mid-jam scope pivot compressed final production into a 3-day sprint.

Procedural Corridor & Room Archetypes

Rather than pre-building 20 static levels or managing branching pathfinding under jam constraints, the game generates a linear 20-room sequence using a sliding-window memory budget:

  • 2-Ahead / Trailing-Cleanup Streaming: Only ~6 rooms exist in Workspace at any moment—spawning 2 rooms ahead of the player’s progress while destroying cleared rooms behind them.
  • Weighted Room Generation: Rooms are rolled by occurrence weight across three distinct gameplay archetypes:
    • Zombie Rooms (Most Common): Spawns 2–5 zombies whose chase speed matches the player’s base walk speed, forcing either sprint escapes or crouch-based stealth (zombies only aggro on moving targets). The exit stays sealed until all zombies are cleared, with a ~1-in-3 chance to also spawn a high-speed Clown stalker.
    • Closing Walls Rooms: Locks the entry door behind the player and triggers crushing walls at a spatial threshold, forcing a timed sprint into the next room.
    • Darkness Rooms: Pitch-black corridors with no physical enemies where players must keep their flashlight active to suppress rapid fear buildup.

Multi-Stimulus Fear, Stealth & Movement Loop

  • Dynamic Fear Meter: A continuous fear state evaluates multiple environmental and combat inputs—climbing in darkness (especially while standing still), upon line-of-sight entity contact, taking damage, during closing-wall traps, or near the Clown stalker. Moving, standing in lit zones, or keeping the flashlight active pulls the meter back down.
  • Escalating Panic & Instant-Kill Threshold: Nearing maximum fear layers a corrupting screen overlay, swelling audio, and heavy camera breathing; pinning the meter at max spawns an instant-kill shadow entity in the room.
  • Stamina & Crouch Stealth: Sprinting drains a regenerating stamina bar while crouching suppresses zombie movement detection. (Scattered battery pickups up to a 6-item cap remain collectable in the map as leftover items, though flashlight battery drain and refilling were cut during final scope triage, leaving the flashlight permanently powered.)

Cutscene, Localization & Checkpoint Pipeline

  • Data-Driven CutsceneManager: Adapted and extended core systems from Cozy Cuddle into a dedicated cutscene orchestrator handling camera tracks, movement locks, screen fades, and scene presets across the bedroom intro, stair-descent cave transition, tutorial, and ending—paired with a subtitle system supporting localization.
  • DataStore Checkpoints & Tension Disconnects: Saves checkpoint progression (Start, Cave, AnotherCheckpoint), New Game overwrite confirmations, and intro-skip flags in DataStore profiles. Instead of standard respawns, lethal hits or max-fear deaths disconnect the player with custom status messages ("..." / "FEAR"), resuming from their last saved checkpoint on rejoin.

Scope Triage & Sprint Post-Mortem

  • Rapid Feature Triage: Re-scoping the game mid-week left roughly three days to assemble and test a playable 20-room loop—requiring hard cuts like dropping the flashlight battery drain mechanic while keeping the core procedural rooms, fear meter, and checkpoint flow intact.
  • Scene Registry Collision Bug: Under that compressed final build window, the Room 20 ending cutscene was duplicated from the intro and accidentally registered under the same CutsceneManager key ("BedWakeUpIntro"). That duplicate identifier silently overwrote the intro sequence on release, breaking progression—a concrete lesson in strict identifier validation that carried into later architectures.