Log inGet started
Package

horrorKit.package

This package holds more than this page lists. See all of its files in its world.

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

featuremade withtry it
dark bulkhead room, 16 x 15 x 3.4 m, doorway southbulkheadKit room, prop
three placed lights: a dying fluorescent over the middle, a swinging bulb over the desk, an emergency red lamp in the peneerieLightsKit LightBehavior (circuit showcase)require("eerieLightsKit.api").circuit("showcase", false) kills them, true brings them back
three light pedestals on the west wallhorrorKit.TorchStandE on one: your flashlight becomes that style (F toggles, V shakes, B swaps)
a scare on an area triggerscaresKit Scare (ventBurst, repeats after 20 s)step on the hazard mark
a note on the deskloreKit Lore (note style)E to read, J for the journal
a safe corner with a save terminalhorrorKit SafeRoom + SaveTerminalE on the console: progress saved, light recharged, you respawn here
a monster penstalkerKit Stalker (shambler) behind a 0.9 m wall 1.2 m thick, a 2.2 m empty strip and a railit 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 roomnavKit NavMapthe monster walks on it
labels on every featureengine Text3D on a dark plate

Options (Showcase.build(root, opts))

optiondefaultmeaning
at{ 0, 0, 0 }floor centre of the room (local to root, or world when root is nil)
theme"derelict"any bulkheadKit theme
directortrueadd a HorrorDirector when the scene has none
monster"shambler"pursuer, shambler, lurker, lightshy, blind; "" for an empty pen
navMaptruebake 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
labelstruethe 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.