Shapes
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
Shapes
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.battle.Shapes — line geometry for the battle: the graphite hero in its poses, the Echo SCRIBBLE, Teddy, the arena's wireframe street, and the FX. Figures are authored in FIGURE SPACE: x = screen-right, y = up, z = toward the camera. Shapes.orient() maps a segment list into world axes so a drawn figure always faces the arena camera like a sketch on glass.
rng(seed: number) → void
small helpers
| arg | type | description |
|---|---|---|
| seed | number |
lerp(a: ?, b: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? | |
| t | ? |
v3(x: ?, y: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| z | ? |
limb(out: ?, a: ?, b: ?, bow: ?, n: ?) → void
a limb from a to b, bowed sideways a little and split in 3 so it wobbles
| arg | type | description |
|---|---|---|
| out | ? | |
| a | ? | |
| b | ? | |
| bow | ? | |
| n | ? |
ring(out: ?, c: ?, rx: ?, ry: ?, n: ?, a0: ?, a1: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| out | ? | |
| c | ? | |
| rx | ? | |
| ry | ? | |
| n | ? | |
| a0 | ? | |
| a1 | ? | |
| z | ? |
poly(out: ?, pts: ?) → void
| arg | type | description |
|---|---|---|
| out | ? | |
| pts | ? |
orient(segs: { Seg }, R: { number }, F: { number }) → void
orientation: figure space -> world offsets
| arg | type | description |
|---|---|---|
| segs | { Seg } | |
| R | { number } | |
| F | { number } |
heroBody(out: ?, P: ?) → void
body (everything but the head) for a pose
| arg | type | description |
|---|---|---|
| out | ? | |
| P | ? |
heroHead(out: ?, P: ?, unspool: ?, to: ?) → void
The hollow circle head. `unspool` 0..1 unrolls it into a line that reaches toward `to` (the Echo's head) — the Awakening.
| arg | type | description |
|---|---|---|
| out | ? | |
| P | ? | |
| unspool | ? | |
| to | ? |
heroHeadScribble(out: ?, P: ?, seed: ?) → void
The head boiling into wild graphite loops (just before the Awakening).
| arg | type | description |
|---|---|---|
| out | ? | |
| P | ? | |
| seed | ? |
hero(pose: string, opts: any?) → void
| arg | type | description |
|---|---|---|
| pose | string | |
| opts | any? |
undone(seed: number) → void
lines scattered on the floor: the hero "comes undone"
| arg | type | description |
|---|---|---|
| seed | number |
scribble(seed: number, reveal: number?) → void
| arg | type | description |
|---|---|---|
| seed | number | |
| reveal | number? |
g( ) → void
jit(a: ?) → void
| arg | type | description |
|---|---|---|
| a | ? |
teddy(pose: string?) → void
TEDDY — crisp cyan vector stick figure, backwards cap, pipe on shoulder
| arg | type | description |
|---|---|---|
| pose | string? |
slash(seed: number) → void
FX three graphite slashes (figure space, centred on the target's chest)
| arg | type | description |
|---|---|---|
| seed | number |
burst(seed: number, radius: number) → void
a lamp-white burst of rays (Lumen)
| arg | type | description |
|---|---|---|
| seed | number | |
| radius | number |
impact(seed: number, radius: number) → void
red crayon impact scrawl
| arg | type | description |
|---|---|---|
| seed | number | |
| radius | number |
storm(seed: number, w: number, h: number) → void
the ERASE ALL storm: a violent ball of scribble over the enemies
| arg | type | description |
|---|---|---|
| seed | number | |
| w | number | |
| h | number |
arena(c: { number }, D: { number }, S: { number }, eye: { number }) → void
THE ARENA — a fragment of Kessick's wireframe street fading into black. Built in world space around `c` (arena centre) along unit axis D (the direction the camera looks, flattened) with side axis S (screen-right). Returns segments bucketed by distance from `eye`: { near, mid, far, faint }, plus `lamps` (bulb segments) and `lampPoints` (positions for lights).
| arg | type | description |
|---|---|---|
| c | { number } | |
| D | { number } | |
| S | { number } | |
| eye | { number } |
W(u: ?, y: ?, v: ?) → void
| arg | type | description |
|---|---|---|
| u | ? | |
| y | ? | |
| v | ? |
put(a: ?, b: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? |
line(u0: ?, y0: ?, v0: ?, u1: ?, y1: ?, v1: ?) → void
| arg | type | description |
|---|---|---|
| u0 | ? | |
| y0 | ? | |
| v0 | ? | |
| u1 | ? | |
| y1 | ? | |
| v1 | ? |
box(u: ?, v: ?, y: ?, du: ?, dv: ?, h: ?) → void
| arg | type | description |
|---|---|---|
| u | ? | |
| v | ? | |
| y | ? | |
| du | ? | |
| dv | ? | |
| h | ? |
seg(a: ?, b: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? |
kneeler( ) → void
the freed outline: the Postman's clean cyan lines, kneeling (figure space, facing screen-left toward the party)
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.
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.