arena.sceneModule
Builds the ring, courtyard, crowd and lighting. Placed once by the scene build at the origin. Owned by the arena slice.
arena
Builds the ring, courtyard, crowd and lighting. Placed once by the scene build at the origin. Owned by the arena slice.
See /zero/source/design/spec.md for the interface and ownership.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
maps(set: string) → void
Generated surface maps (game/arena/textures/<set>/), painted by arena_surface when tex_amount > 0.
| arg | type | description |
|---|---|---|
| set | string |
v3(x: number, y: number, z: number) → vector
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number |
hoop(b: any, cx: number, y: number, cz: number, r: number, thick: number, segs: number) → void
Ring of tubes approximating a hoop of radius r at height y around (cx, cz).
| arg | type | description |
|---|---|---|
| b | any | |
| cx | number | |
| y | number | |
| cz | number | |
| r | number | |
| thick | number | |
| segs | number |
basket(iron: any, coals: any, x: number, y: number, z: number, r: number) → void
Iron fire basket: dish, flaring bars from its rim, two hoops riveted on the outside of the bars, a mound of coals inside the dish. Base at (x, y, z). Parts touch; none passes through another.
| arg | type | description |
|---|---|---|
| iron | any | |
| coals | any | |
| x | number | |
| y | number | |
| z | number | |
| r | number |
barR(h: number) → number return r0
| arg | type | description |
|---|---|---|
| h | number |
brazier(iron: any, coals: any, x: number, z: number) → number
Tripod brazier standing on the ground at (x, z); returns the height of its fire bed. The legs stop just under the bowl and the hoop rides outside them.
| arg | type | description |
|---|---|---|
| iron | any | |
| coals | any | |
| x | number | |
| z | number |
torch(iron: any, x: number, y: number, z: number, nx: number, nz: number) → void
Wall/post torch: a short iron cup on an arm, returns the flame base.
| arg | type | description |
|---|---|---|
| iron | any | |
| x | number | |
| y | number | |
| z | number | |
| nx | number | |
| nz | number |
buildRing( ) → void
buildCourt( ) → void
at(side: any, d: number, s: number) → void
| arg | type | description |
|---|---|---|
| side | any | |
| d | number | |
| s | number |
yawFacingIn(side: any) → number
| arg | type | description |
|---|---|---|
| side | any |
inGap(side: any, s: number, w: number) → boolean
| arg | type | description |
|---|---|---|
| side | any | |
| s | number | |
| w | number |
boxAt(b: any, side: any, d: number, s: number, y: number, len: number, h: number, depth: number, skipBottom: boolean?) → void
| arg | type | description |
|---|---|---|
| b | any | |
| side | any | |
| d | number | |
| s | number | |
| y | number | |
| len | number | |
| h | number | |
| depth | number | |
| skipBottom | boolean? |
p(a: number, b: number) → vector return fr
| arg | type | description |
|---|---|---|
| a | number | |
| b | number |
p(a: number, b: number) → vector return fr
| arg | type | description |
|---|---|---|
| a | number | |
| b | number |
arcade(side: any) → void
| arg | type | description |
|---|---|---|
| side | any |
W(s: number, y: number, d: number) → vector
| arg | type | description |
|---|---|---|
| s | number | |
| y | number | |
| d | number |
inGate(s0: number, s1: number) → boolean
| arg | type | description |
|---|---|---|
| s0 | number | |
| s1 | number |
wallPiece(sa: number, sb: number, ya: number, yb: number) → void
| arg | type | description |
|---|---|---|
| sa | number | |
| sb | number | |
| ya | number | |
| yb | number |
ring(rr: number, a: number, d: number) → vector
| arg | type | description |
|---|---|---|
| rr | number | |
| a | number | |
| d | number |
p(a: number, b: number) → vector return bf
| arg | type | description |
|---|---|---|
| a | number | |
| b | number |
rp(s: number, y: number, d: number) → vector
| arg | type | description |
|---|---|---|
| s | number | |
| y | number | |
| d | number |
p(a: number, b: number, d: number) → vector return fr
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| d | number |
star(n: number, seed: number) → any
Flame and smoke stars: `n` unit quads (x -0.5..0.5, y 0..1) crossed about the vertical axis, each mesh variant carrying its own flicker seed in vertex colour red. They read from every side with no camera-facing hook, so every pass draws them where the frame does.
| arg | type | description |
|---|---|---|
| n | number | |
| seed | number |
figure(look: number, phase: number) → any
| arg | type | description |
|---|---|---|
| look | number | |
| phase | number |
front(a: number) → boolean return math
Everything but the arms is ONE closed surface of revolution, coloured row by row (and by angle for faces), so no two shells of a figure ever lie a few centimetres apart.
| arg | type | description |
|---|---|---|
| a | number |
realGeometry(name: string) → any
| arg | type | description |
|---|---|---|
| name | string |
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 the 199 items nearest this part. It holds more than this page lists.
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.