# brinefall.script
The scripted beats of Brinefall Station on scriptedEventsKit, scaresKit and stalkerKit: five scares, the pursuer encounter, the breaker, the finale and the ending. The scene entrypoint calls `start()` in onLoad on every peer.
# Brinefall Station
A short, original survival-horror level built entirely from installable parts: the horror kit (`horrorKit` and the packages it installs) and `bulkheadKit` for the station itself. It is both a level to play and a worked example to read.
1986, a research habitat 480 m down on the lip of a trench, silent for nine days. You are a contract diver sent down in the station's own diving bell. Something in the ducts has learned the station's sounds, and it follows light.
## What it contains
| module | what |
|---|---|
| `brinefall.layout` | the station's 11 rooms and their dressing (bulkheadKit), returning named anchors |
| `brinefall.content` | doors, the red keycard and its lock, the breaker lever, lore props, scarce supplies, the med-bay safe room and save terminal, the two monsters and their vents, the HorrorDirector |
| `brinefall.story` | the eight lore entries (notes, memos, terminals, tapes) |
| `brinefall.script` | the scripted beats: five scares, the pursuer encounter, the breaker, the finale and the ending |
| `brinefall.playtest` | plays the level start to end with real input and reports when each of the 12 cues fired, how often, every scare and monster state (`require("brinefall.playtest").run()` in play) |
`DESIGN.md` has the route, the beats and the story.
## Use it
The scene build calls `Layout.build(root)` and then `Content.build(anchors)`; `brinefall.LevelScript` (placed on the HorrorDirector) and the scene entrypoint's `onLoad` call `require("brinefall.script").start()`. Everything a player shares (doors, monsters, scripted events, lights) is synced or host-decided, so two players see the same station.
## 1.0.17
On horrorKit 1.0.21 (saveKit 1.3.21). No code changes.
## 1.0.16
On horrorKit 1.0.20, which states controlsKit 1.4.7; use 1.0.17. No code changes.
## 1.0.14
On horrorKit 1.0.18 and bulkheadKit 1.0.3. No code changes.
## 1.0.13
On horrorKit 1.0.13. No code changes.
## 1.0.12
On horrorKit 1.0.12. No code changes.
## 1.0.11
On horrorKit 1.0.11. No code changes.
## 1.0.10
On horrorKit 1.0.10. No code changes.
## 1.0.9
On horrorKit 1.0.9: no saveKit XP bar over the level, quiet when play stops.
## 1.0.8
On horrorKit 1.0.8.
## 1.0.7
On horrorKit 1.0.7.
## 1.0.6
- Every scare fires once at its moment: the knock and the shape crossing are essential now, like the lights-closer, body drop and dock slam. In one playthrough the tension director's pacing vetoed both as the player walked through, and a walk-through trigger does not come back, so they were lost for that run.
- New `brinefall.playtest`, the playthrough driver the 2026-11-23 runs used.
- On horrorKit 1.0.6.
## 1.0.5
On horrorKit 1.0.5.
## 1.0.4
On horrorKit 1.0.4 and bulkheadKit 1.0.2.
## 1.0.3
- No longer depends on stealthKit. The HUD keeps its light and noise element on (`showStealth`); it draws when the world places `horrorStealthLink.StealthReadout`, which this world's scene does, and draws nothing otherwise. Declares menusKit (the ending screen) and horrorKit 1.0.3.
## 1.0.2
- `start()` now waits for play to settle when the entrypoint calls it during the edit to play flip (engine.mode still "edit"); before, a fresh engine defined no cue at all and no beat fired.
- The scene entrypoint hook is `onLoad` (this engine has no `onLoadDefault`). `brinefall.LevelScript` (new component on HorrorDirector) starts the beats on the edit to play flip. The start guard is a time stamp, not a flag kept in module state.
- Moon-pool blockers are 3 m tall (a jump cleared the 1.4 m ones into the shaft). lightsCloser is essential (the pacing gate could drop it for good). The gallery console loads the gallery from a system task (a load started by the scene it unloads stalled half-way).