CinderAmbience
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
CinderAmbience
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->TODO: describe this component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2CinderAmbience — how the mountain looks. Sits on the `GameRoot` entity and owns the whole volcanic look: the sky, the fog, the key and fill lighting, the lens, the light the lava throws onto the crater walls, the ash plume, the ember fall, the ground haze, the beacon a pylon lights when it arms, and the look of every hazard slice A launches. It drives all of that off two inputs and nothing else: `cinder.progress()` 0..1 — how far into the eruption we are `cinder.state.lavaY` the lava surface height so the look escalates without knowing anything about the rules. Nothing it builds lives in the scene file. Every entity it needs — the atmosphere rig, the emitters, the crater lights, the beacons, the hazard dressing — is spawned at runtime as a temporary entity and torn down again in `onDestroy`, so a hot reload leaves the scene exactly as it found it. The palette lives next door in `@me::art.look`. OWNED BY SLICE B (world-and-look). No other slice edits this file.
spawn(name: string, components: any, pos: { number }) → string
Small helpers over the entity API. Every one tolerates the entity having gone away underneath it — a sibling slice owns some of what we dress.
| arg | type | description |
|---|---|---|
| name | string | |
| components | any | |
| pos | { number } |
kill(id: string?) → void
| arg | type | description |
|---|---|---|
| id | string? |
comp(id: string?, name: string) → any
| arg | type | description |
|---|---|---|
| id | string? | |
| name | string |
light(id: string?, color: { number }, intensity: number, radius: number) → void
| arg | type | description |
|---|---|---|
| id | string? | |
| color | { number } | |
| intensity | number | |
| radius | number |
moveTo(id: string?, x: number, y: number, z: number) → void
| arg | type | description |
|---|---|---|
| id | string? | |
| x | number | |
| y | number | |
| z | number |
setLavaProperty(prop: string, value: any) → void
| arg | type | description |
|---|---|---|
| prop | string | |
| value | any |
setRockProperty(prop: string, value: any) → void
| arg | type | description |
|---|---|---|
| prop | string | |
| value | any |
numberSeq(points: { { number } }) → any
| arg | type | description |
|---|---|---|
| points | { { number } } |
colorSeq(points: { any }) → any
| arg | type | description |
|---|---|---|
| points | { any } |
rigId(key: string) → string
| arg | type | description |
|---|---|---|
| key | string |
sweepStale( ) → void
buildRig( ) → void
teardownRig( ) → void
emitter(id: string?) → any
Per-frame: walk the grade, and move everything that rides the lava.
| arg | type | description |
|---|---|---|
| id | string? |
applyLook(p: number) → void
| arg | type | description |
|---|---|---|
| p | number |
lightBeacon(index: number, x: number, y: number, z: number) → void
Beacons: an armed pylon has to be readable from the far side of the crown.
| arg | type | description |
|---|---|---|
| index | number | |
| x | number | |
| y | number | |
| z | number |
clearBeacons( ) → void
bombId(payload: any) → string
Hazard dressing. Slice A launches the bombs; this gives them their look.
| arg | type | description |
|---|---|---|
| payload | any |
dressBomb(payload: any) → void
| arg | type | description |
|---|---|---|
| payload | any |
burstAt(payload: any) → void
| arg | type | description |
|---|---|---|
| payload | any |
cullTimed( ) → void
keep(unsub: () → void
Park an unsubscribe in BOTH places: the local list (so this chunk can drop its own on destroy) and the runtime slot (so the NEXT chunk can drop this one's, which the local list can never do — it is gone by then).
| arg | type | description |
|---|---|---|
| unsub | ( |
subscribe( ) → void
unsubscribe( ) → void
awake( ) → void
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
editorUpdate(dt: number?) → void
| arg | type | description |
|---|---|---|
| dt | number? |
onDestroy( ) → 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.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.