maps
The level-select screens, one per `map.style`: **storybook** (the game's painted picture, `map.art`, with a glowing waystone and name tag per level at `map.spots`), **parchment** (an inked map on old paper: dashed trail between ink rings, legs walked in red ink, cleared stops cro…
maps
The level-select screens, one per map.style: storybook (the game's painted picture, map.art, with a glowing waystone and name tag per level at map.spots), parchment (an inked map on old paper: dashed trail between ink rings, legs walked in red ink, cleared stops crossed, a compass rose), lanterns (a string of lanterns across a starry night; each lights when its level is cleared, the chosen one sways) and list (number, name, best time and medal per row). Each shows lock, best time and medal per level and a card for the chosen level (swatch for its time of day, par, best, coins, medal, Play) in the campaign look. Maps.build(w, h, view) returns the widget tree; click ids are Maps.ID_PLAY, Maps.ID_BACK, Maps.ID_LEVEL .. index. Maps.list() describes the styles.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2nonstrict
fill(style: any, kids: any?) → any
| arg | type | description |
|---|---|---|
| style | any | |
| kids | any? |
defaultSpots(n: number) → void
where each level sits (fractions of the map) when the game gives no spots: a trail zig-zagging left to right between two rows (three past seven levels), clear of the level card in the bottom-left corner, the heading and the compass rose. Neighbours sit on different rows, so a name tag under one stop never covers the next stop.
| arg | type | description |
|---|---|---|
| n | number |
bestText(view: any, best: any) → string
what a best run shows where a time would go: its time, else the runner's own words for it (`best.text`, e.g. "20 lives left"), else its score; nil when it has none of them
| arg | type | description |
|---|---|---|
| view | any | |
| best | any |
info(view: any, i: number, def: any) → any
the info every style needs about one level
| arg | type | description |
|---|---|---|
| view | any | |
| i | number | |
| def | any |
heading(view: any, L: any, s: number) → any
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| s | number |
backButton(view: any, L: any, s: number) → any
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| s | number |
swatch(def: any) → void
| arg | type | description |
|---|---|---|
| def | any |
card(view: any, L: any, s: number, it: any, place: any) → any
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| s | number | |
| it | any | |
| place | any |
row(k: string, v: string) → void
| arg | type | description |
|---|---|---|
| k | string | |
| v | string |
footer(view: any, L: any, s: number) → any
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| s | number |
cover(w: number, h: number, ar: number) → void
the picture's rectangle on screen when drawn "cover"
| arg | type | description |
|---|---|---|
| w | number | |
| h | number | |
| ar | number |
spotsFor(view: any, n: number) → void
| arg | type | description |
|---|---|---|
| view | any | |
| n | number |
marker(i: number, kids: { any }, style: any) → any
the clickable marker wrapper
| arg | type | description |
|---|---|---|
| i | number | |
| kids | { any } | |
| style | any |
tag(view: any, L: any, s: number, it: any, colors: any?) → any
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| s | number | |
| it | any | |
| colors | any? |
storybook(view: any, L: any, w: number, h: number, s: number) → void
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| w | number | |
| h | number | |
| s | number |
parchment(view: any, L: any, w: number, h: number, s: number) → void
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| w | number | |
| h | number | |
| s | number |
lanternSvg(state: string, glass: string) → string
| arg | type | description |
|---|---|---|
| state | string | |
| glass | string |
lanterns(view: any, L: any, w: number, h: number, s: number) → void
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| w | number | |
| h | number | |
| s | number |
yAt(f: number) → number return yTop
| arg | type | description |
|---|---|---|
| f | number |
list(view: any, L: any, w: number, h: number, s: number) → void
| arg | type | description |
|---|---|---|
| view | any | |
| L | any | |
| w | number | |
| h | number | |
| s | number |
build(w: number, h: number, view: any) → any
The level select's widget tree for a w x h screen. view = { levels, focus, progress, map = { style, art, aspect, spots, ... }, medal, text, formatTime, look }.
| arg | type | description |
|---|---|---|
| w | number | |
| h | number | |
| view | any |
list( ) → void
Every map style as { name, blurb }.
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.