Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 8dcc035a-1…

core

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->

by◐niharrk24·posted 1mo ago
What it does

core

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->

TODO: describe this module.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

game/core.module/init.luau THE HOUSE THAT REMEMBERS — the game's one shared module. This is the contract the whole game is built against: the constants, the house as numbers, the rules, the shared runtime state, the bus, and the registry the slices announce themselves through. IT IS THE ONLY INTERFACE BETWEEN SLICES. No slice requires another slice's module — every slice requires `game.core` and talks through it. That is what lets five slices be written at the same time, in one world, without knowing whether the others have landed yet. Read `design/spec.md` beside this file.

on(event: string, fn: (...any) → void

Subscribe to a named event. Returns an unsubscribe function.

argtypedescription
eventstring
fn(...any

emit(event: string, payload: any) → void

Announce something. A handler that throws does not stop the others.

argtypedescription
eventstring
payloadany

provide(name: string, api: table) → void

argtypedescription
namestring
apitable

get(name: string) → any

argtypedescription
namestring

roomAt(x: number, y: number, z: number) → void

Small shared helpers Find the room a world position is standing in. Falls back to the nearest room on that floor, so a doorway or a threshold still answers.

argtypedescription
xnumber
ynumber
znumber

roomCentre(id: string, lift: number?) → void

Centre of a room, at standing height.

argtypedescription
idstring
liftnumber?

objective( ) → void

The live SEQUENCE entry.

past(step: string) → boolean

Is `step` at or past where the game is now? Lets a slice ask "has the player got to this point yet" without hard-coding an order.

argtypedescription
stepstring

advanceTo(step: string) → void

Move the game on. Only ever forward.

argtypedescription
stepstring

say(text: string, seconds: number?) → void

Put a line of narration on the screen for a few seconds. The UI slice subscribes to `narration`; a slice that wants to speak calls this.

argtypedescription
textstring
secondsnumber?

give(item: string) → void

What the player is carrying.

argtypedescription
itemstring

has(item: string) → boolean

argtypedescription
itemstring

remembered(anchor: string) → boolean

Has this memory been entered at least once?

argtypedescription
anchorstring

registerInteractable(spec: table) → void

argtypedescription
spectable

unregisterInteractable(id: string) → void

argtypedescription
idstring

interactable(id: string) → any

argtypedescription
idstring

interactableUsable(spec: table) → boolean

Can it be used right now? A spec with no gate is always usable.

argtypedescription
spectable

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · game/core.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.