▣
module · drop-in viewer
Core
The one table every slice of WICK shares: the constants that define the shaft, the sea and the camera framing, the blackboard the rules write and everyone reads, an event bus, the phase machine's single writer, and the Keeper's script. `local Core = require("game.Core")`. See `/z…
by·posted 1mo ago
What it does
Core
The one table every slice of WICK shares: the constants that define the shaft,
the sea and the camera framing, the blackboard the rules write and everyone
reads, an event bus, the phase machine's single writer, and the Keeper's
script. local Core = require("game.Core"). See /zero/source/design/spec.md.
Exports
Core.SHAFT,Core.SEA,Core.CAMERA,Core.STAGING_TIMEOUT— the place.Core.state—phase,player {x, y, vx, vy, wall, facing, gripping, grip, alive},height,best,seaHeight,seaRate,surged,lampLit,elapsed,kicks,run.Core.events.on(name, fn) -> unsubscribe,Core.events.emit(name, ...),Core.events.count(name).Core.setPhase(p)— called bygame.Climbonly.Core.LINES,Core.say(id)— the Keeper's lines;sayemits"say"and"caption".Core.heightClimbed(),Core.seaGap(),Core.resetRun(),Core.clamp,Core.lerp.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.