Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 3ee3840c-2…

player

The player's body in the dark, for LAST CARRIAGE: EVACUATION. Required by `scenes/main.scene/entrypoint.luau`, which calls `start(ctx)` on scene load, `onPlayer(player)` once the local body exists, `update(dt)` every frame in play, and `stop()` on unload.

by◐chefcho·posted 2d ago
What it does

player

The player's body in the dark, for LAST CARRIAGE: EVACUATION. Required by scenes/main.scene/entrypoint.luau, which calls start(ctx) on scene load, onPlayer(player) once the local body exists, update(dt) every frame in play, and stop() on unload.

It does not move the body itself — the avatar the scene's PlayerPrototype spawns carries the engine's CharacterController, and the CameraRig carries @builtin::controller.first_person, so walking and looking are already the engine's. This module is everything on top of that:

  • The gait. Walk, run and crouch, each with its own speed, its own footfall cadence and its own loudness from Core.NOISE. Every footfall is published twice: on aiKit's noise bus (AI.noise(pos, metres, body, kind), with Core.NOISE carried to metres by METRES_PER_LOUDNESS) and on Core's noise event. Crouching is genuinely quiet and genuinely slower; running is genuinely loud. Core.state.noiseLevel tracks what the body is making.
  • The eye. Crouch drops the camera from 1.62 m to 1.04 m; a step bob and a breath sway ride on top, both written through the camera behaviour's own offsetX/offsetY fields so they compose with the look the engine drives.
  • The torch. A narrow, hard-edged spot (13° outer, 6° inner, 11 m) held low and to the right, with a small warm wash at the hand. The cell drains over eleven minutes of play and the beam dims, misses and stutters as it goes.
  • The dust. Core.state.dust rises on the track bed and in the service tunnel, holds on the open platform and falls in the carriage and the maintenance room, at the rates in Core.DUST. The mask's filter is spent only in bad air, and at criticalAt the run ends on died.
  • The breath. In and out on a clock that quickens with exertion and with dust load, and audible in its own right.

Reading it

Player.get() returns { gait, noise, crouched, battery, eye } for the HUD, the screens or a debug overlay. Nothing else here is another slice's to call.

Notes for later passes

  • Sounds live in game/player.module/audio/ — step_walk, step_run, step_crouch, breath_in, breath_out, all hand-synthesized PCM.
  • The torch is lights only: no barrel mesh is drawn, so the beam is the whole of what the player sees of it. A held-torch model is a slot for polish.

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/player.module — the body in the dark: the walk, the crouch, the dying torch, the breath and the dust. SLICE: player. The engine already moves the body: the avatar the scene's PlayerPrototype spawns carries a CharacterController that reads `move`, `sprint` and `jump` off `@builtin::inputMaps.default`, and the CameraRig's `first_person` behaviour poses the eye off the body. This module owns everything that sits on top of that and is not a body: * the gait — walk, run, the slow careful crouch — and what each one is worth to a blind creature, published on aiKit's noise bus and on Core's `noise` event; * the eye: a crouch that actually drops it, a step bob and a breath sway, all written through the camera behaviour's own offset fields so they compose with the look the engine drives; * the flashlight: a narrow, hard-edged cone held in the right hand, with a battery that runs down and a beam that fails as it does; * the breath, and the dust it pulls through the mask. Contract: start(ctx), update(dt), onPlayer(player), stop(). Nothing here throws out of update — a fault is warned once and the slice carries on.

LightAssetAudio

warnOnce(err: ?) → void

argtypedescription
err?

bodyEntity( ) → void

The prototype's body and its camera are spawned per peer and re-established across a mode flip, so nothing here is cached past the frame that read it.

rigFor(body: ?) → void

argtypedescription
body?

childNamed(parent: ?, name: ?) → void

A child of `parent` by name, or nil. The names this slice spawns are its own, so a stale one from an earlier load is replaced rather than stacked.

argtypedescription
parent?
name?

resolve( ) → void

buildTorch(rig: ?) → void

argtypedescription
rig?

buildBody(body: ?) → void

The scene's player is dressed as the library's humanoid. What the opening cinematic, a shadow on the wall and another player's screen should show is the commuter of the reference, so the body carries that mesh and the humanoid's own skin is hidden underneath it — hidden rather than disabled, so the rig that drives the character controller keeps running.

argtypedescription
body?

loadClips( ) → void

Every clip is named by a literal so the dependency is pinned at publish time.

buildAudio(rig: ?) → void

argtypedescription
rig?

oneShot(name: ?, volume: ?, pitch: ?) → void

argtypedescription
name?
volume?
pitch?

stepSound(volume: ?, pitch: ?) → void

A footfall, taken from the takes in turn.

argtypedescription
volume?
pitch?

publishNoise(loudness: ?, kind: ?) → void

argtypedescription
loudness?
kind?

airAt(body: ?) → void

argtypedescription
body?

tickDust(dt: ?) → void

argtypedescription
dt?

gaitOf(speed: ?, crouched: ?) → void

argtypedescription
speed?
crouched?

loudnessOf(gait: ?) → void

argtypedescription
gait?

tickEye(dt: ?, speed: ?, gait: ?) → void

argtypedescription
dt?
speed?
gait?

tickTorch(dt: ?) → void

argtypedescription
dt?

tick(dt: ?) → void

argtypedescription
dt?

acquireInput( ) → void

start(ctx: ?) → void

argtypedescription
ctx?

onPlayer(player: ?) → void

argtypedescription
player?

update(dt: ?) → void

argtypedescription
dt?

get( ) → void

What the other slices and the polish pass can read: the torch's state, the stance, and what the body is doing.

stop( ) → void

Sub-parts

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

Showing up to 3 levels deep. Open a part to see what it holds further down.

55+items
·
soundclip · born here
❒asset
# breath_masked One shallow, tense breath through a rubber dust mask — inhale and exhale, air hissing through a dense filter, faint fabric rustle. Quiet, muffled, close: a person trying to stay silent. No reverb tail. Plays once per breath cycle in `game/player.module`, pitched to fit the cycle, so it quickens into a pant as the player runs or as the dust builds.
▲ 0↑ born
·
soundclip · born here
❒asset
# probe_click [[describe]] Say what this sound is and what it is for.
▲ 0↑ born
·
soundclip · born here
❒asset
# step_wet_1 One boot on wet concrete in the tiled station — sole scuff into a soft wet slap, with a little grit under it. Close and dry, no reverb tail. Take 1 of 3. The player's stride cycles through the three takes so no footfall repeats itself; the gaits are the same boot moved in pitch and weight, so a run lands brighter and a crouch heavier and lower.
▲ 0↑ born
·
soundclip · born here
❒asset
# step_wet_2 One boot on wet concrete in the tiled station — heel first, flat and heavy, a short wet squelch and grit crunch. Close and dry, no reverb tail. Take 2 of 3. The player's stride cycles through the three takes so no footfall repeats itself; the gaits are the same boot moved in pitch and weight, so a run lands brighter and a crouch heavier and lower.
▲ 0↑ born
·
soundclip · born here
❒asset
# step_wet_3 One quick, lighter boot on wet concrete in the tiled station — a scuff and a small wet slap of a worn sole, faint grit. Close and dry, no reverb tail. Take 3 of 3. The player's stride cycles through the three takes so no footfall repeats itself; the gaits are the same boot moved in pitch and weight, so a run lands brighter and a crouch heavier and lower.
▲ 0↑ born
▣
module · born here
❒asset
# core The `game.core` module defines the shared constants, rules, and global state for the game "LAST CARRIAGE: EVACUATION." It provides a central source of truth for game data like world layout, noise levels, item definitions, and narrative documents. All other game slices (`game.atmos`, `game.player`, etc.) require this module to access consistent game parameters and to interact with the shared game state and event bus.
▲ 0↑ born
❒
bundle · born here
❒asset
▲ 0↑ born
❒
bundle · born here
❒asset
▲ 0↑ born
◐
material · born here
❒asset
▲ 0↑ born
△
mesh · born here
❒asset
▲ 0↑ born
△
mesh · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
◐
material · born here
❒asset
▲ 0↑ born
△
mesh · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
backing path · game/player.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 on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬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.