juice
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
juice
<!-- 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/pickups/juice.module — glowing apple-juice-box health pickups (GAMEPLAY slice). One box per arena `juice_spot_*` marker (fallback ring if the arena has none yet). Model answers to design/references/juice_box.png: yellow clay carton, red top and base bands, red cross + smiling apple on the front, green "APPLE JUICE" crayon lettering on the side, white bendy straw with red stripes, warm glow. Heals JUICE.heal, comes back after JUICE.respawnSeconds.
buildBox(parent: any) → any
Builds the juice box model (~0.42 m tall before the 1.35 scale).
| arg | type | description |
|---|---|---|
| parent | any |
spots( ) → void
spawn(ctx: any) → void
| arg | type | description |
|---|---|---|
| ctx | any |
resetAll( ) → void
update(dt: number, actors: { any }, heal: (any, number, vector) → void
actors: list of { alive, hp, maxHp, pos() } ; heal(actor, amount, pos)
| arg | type | description |
|---|---|---|
| dt | number | |
| actors | { any } | |
| heal | (any, number, vector |
nearest(p: vector) → vector
Nearest ready juice box to `p` (for hurt bots).
| arg | type | description |
|---|---|---|
| p | vector |
list( ) → void
clear( ) → 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.