Log inGet started
World

Hold Your Breath: Horror FPS Kit with Flashlights, Scripted Scares and Stalkers (fork)

Branchmain
Commit6143ad305f

README.md

scaresKit.links

The optional kits scaresKit works with: tensionKit.api, interactKit.api. scaresKit does not require them by name (a literal require is recorded as a dependency when the kit is published, which would make every optional kit a hard requirement of every install), so the game hands each module over:

local Links = require("~scaresKit.links")
Links.link("<kit>.<module>", require("~<kit>.<module>"))
  • Links.link(name, mod): link a module under its dotted name; nil unlinks it.
  • Links.get(name): the linked module, or nil.
  • Links.linked(): the names linked now.

Links live in module state, so a hot reload keeps them. require("~horrorKit.api") links every kit it installs, so a horrorKit game needs no calls of its own.