game
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
solarFraction( ) → number
0 at midnight, 1 at noon. Drives basking, thermal strength, and the sky.
hourOfDay( ) → number
surfaceAirK( ) → number
Surface air temperature, K. Swings with the sun; the night is what kills.
airKAt(altitude: number) → number
Ambient air at an altitude, using the real lapse rate.
| arg | type | description |
|---|---|---|
| altitude | number |
updraftAt(x: number, y: number, z: number) → number
A thermal is a column of air the ground heated. It is invisible; the only tells are the dust it lifts and the birds already circling it. Free altitude, if you can find one and stay in it. Vertical air speed at a point, m/s. Positive is lift.
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number |
windAt(x: number, y: number, z: number) → void
Horizontal wind at a point, m/s. Storms push air out ahead of them.
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number |
humidityAt(x: number, z: number) → number
Is this point inside a storm? Wet air throttles panting.
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
advanceWeather(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
say(text: string, seconds: number?) → void
| arg | type | description |
|---|---|---|
| text | string | |
| seconds | number? |
activeSubtitle( ) → string
save( ) → void
load( ) → State
hasSave( ) → boolean
newLineage(name: string) → void
| arg | type | description |
|---|---|---|
| name | string |
respawnAsHatchling( ) → void
Death, then the next generation: you respawn as your own hatchling.
Screen = "main" | "lineage" | "settings" | "codex" | "gallery" | "pause" | "playing" | "death"Settings = {Thermal = { x: number, z: number, radius: number, strength: number, phase: number }Storm = { x: number, z: number, radius: number, strength: number, vx: number, vz: number }Clock = {Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
Inside
2 problems across 1 itemagent_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.