Hold Your Breath: Horror FPS Kit with Flashlights, Scripted Scares and Stalkers
README.md
horrorKit.showcase
One call builds a compact, dark showcase room that shows the whole horror kit working, so you can see every part in your own world before you build a level with it. Call it from a scene's build.luau; the room is baked into the scene like anything else the build makes.
The snippet
In a scene that already has a first-person player (a PlayerPrototype with a camera; give the camera environment = "isolated" and delete the new-world template's lighting entity, whose sky lights interiors even through an isolated camera, so the room is actually dark):
local Showcase = require("horrorKit.showcase")
function content()
-- ... your scene's own content and player setup ...
Showcase.build(nil, { at = { 40, 0, 0 } }) -- a 16 x 15 m room centred on x 40, z 0
end
Press Play and walk in through the doorway on the room's south side (x 37, z -7 in the example).
What is in the room
| feature | made with | try it |
|---|---|---|
| dark bulkhead room, 16 x 15 x 3.4 m, doorway south | bulkheadKit room, prop | |
| three placed lights: a dying fluorescent over the middle, a swinging bulb over the desk, an emergency red lamp in the pen | eerieLightsKit LightBehavior (circuit showcase) | require("eerieLightsKit.api").circuit("showcase", false) kills them, true brings them back |
| three light pedestals on the west wall | horrorKit.TorchStand | E on one: your flashlight becomes that style (F toggles, V shakes, B swaps) |
| a scare on an area trigger | scaresKit Scare (ventBurst, repeats after 20 s) | step on the hazard mark |
| a note on the desk | loreKit Lore (note style) | E to read, J for the journal |
| a safe corner with a save terminal | horrorKit SafeRoom + SaveTerminal | E on the console: progress saved, light recharged, you respawn here |
| a monster pen | stalkerKit Stalker (shambler) behind a 0.9 m wall 1.2 m thick, a 2.2 m empty strip and a rail | it sees and hears you across the strip; its 2.1 m reach cannot get to the rail |
| a HorrorDirector (only when the scene has none) | horrorKit HorrorDirector (quietDread, grain70s, classic HUD, classic torch, no guns) | every player gets a torch and the HUD |
| a navKit map over the room | navKit NavMap | the monster walks on it |
| labels on every feature | engine Text3D on a dark plate |
Options (Showcase.build(root, opts))
| option | default | meaning |
|---|---|---|
at | { 0, 0, 0 } | floor centre of the room (local to root, or world when root is nil) |
theme | "derelict" | any bulkheadKit theme |
director | true | add a HorrorDirector when the scene has none |
monster | "shambler" | pursuer, shambler, lurker, lightshy, blind; "" for an empty pen |
navMap | true | bake a navKit map over the room (turn off when your scene bakes one over everything) |
scare | "ventBurst" | any scaresKit scare id |
stands | { "classic", "lantern", "uv" } | flashlightKit styles on the pedestals |
labels | true | the world-space labels |
name | "HorrorShowcase" | the room's entity name |
Returns { root, center, pen, terminal, stands, scare, lore }.
Showcase.label(parent, name, pos, yaw, title, { sub, size, width, color, plate }) is the label helper the room uses: lit Text3D on a dark plate, readable in a pitch-black room. yaw 0 faces +z.
Needs
horrorKit and the packages it stands on (flashlightKit, eerieLightsKit, scaresKit, scriptedEventsKit, loreKit, stalkerKit with aiKit and navKit, interactKit), plus bulkheadKit for the room itself.
Known limits
- The room is axis-aligned (bulkheadKit rooms are); place it with
at, it does not rotate. - The monster is a real stalkerKit monster: a visitor who climbs the rail and the pen wall is in reach.