Screens — every screen the player sees: title, HUD, descent card, ending.
OWNED BY THE SCREENS SLICE. Lives on the scene's "Game" entity. Reads
Core.state and listens to Core events; the only things it ever asks of the
puzzle are Core.startGame() (title "Begin Descent", ending "Descend Again")
followed by placing the body at Core.spawnPoint(1), the same as the
Lightbearer's own begin control.
Palette: engraved gold on indigo-black glass, with prism colours only where
light itself is meant (the title's edge, Sigil chips, the carried crystal).
Type: EB Garamond (display, names) and PT Serif (labels, keycaps).
Screens (ui layer):
lum_hud 200 depth medallion + chamber name, Sigil Locks x/y with demand
chips, nearest-device prompt, carried crystal, E/Q/F/R hint
lum_title 900 generated backdrop, LUMINARIA, Begin Descent / Controls
lum_card 950 descent card: falls on `descend`, names the chamber on `arrived`
lum_end 980 the Heart awakens, on `gameWon`
col(m: number?, a: number?) → string
| arg | type | description |
|---|
| m | number? | |
| a | number? | |
cname(m: number?) → string
| arg | type | description |
|---|
| m | number? | |
roman(n: number) → string return ROMAN
| arg | type | description |
|---|
| n | number | |
anim(kf: ?, dur: ?, delay: ?, iter: ?, easing: ?, fill: ?) → void
| arg | type | description |
|---|
| kf | ? | |
| dur | ? | |
| delay | ? | |
| iter | ? | |
| easing | ? | |
| fill | ? | |
rise(delay: ?, dist: ?, dur: ?) → void
| arg | type | description |
|---|
| delay | ? | |
| dist | ? | |
| dur | ? | |
slideX(delay: ?, dist: ?) → void
| arg | type | description |
|---|
| delay | ? | |
| dist | ? | |
fade(from: ?, to: ?, dur: ?, delay: ?, easing: ?) → void
| arg | type | description |
|---|
| from | ? | |
| to | ? | |
| dur | ? | |
| delay | ? | |
| easing | ? | |
breathe(lo: ?, hi: ?, dur: ?) → void
| arg | type | description |
|---|
| lo | ? | |
| hi | ? | |
| dur | ? | |
box(style: ?, children: ?, extra: ?) → void
Pieces
| arg | type | description |
|---|
| style | ? | |
| children | ? | |
| extra | ? | |
row(style: ?, children: ?, extra: ?) → void
| arg | type | description |
|---|
| style | ? | |
| children | ? | |
| extra | ? | |
text(t: ?, style: ?, id: ?) → void
| arg | type | description |
|---|
| t | ? | |
| style | ? | |
| id | ? | |
full(style: ?, children: ?, extra: ?) → void
| arg | type | description |
|---|
| style | ? | |
| children | ? | |
| extra | ? | |
ornament(w: ?, glow: ?) → void
| arg | type | description |
|---|
| w | ? | |
| glow | ? | |
keycap(k: ?, wide: ?) → void
| arg | type | description |
|---|
| k | ? | |
| wide | ? | |
smallcaps(t: ?, size: ?, color: ?, spacing: ?) → void
| arg | type | description |
|---|
| t | ? | |
| size | ? | |
| color | ? | |
| spacing | ? | |
gem(mask: ?, size: ?, lit: ?) → void
A diamond crystal chip in a light colour; lit = blazing.
| arg | type | description |
|---|
| mask | ? | |
| size | ? | |
| lit | ? | |
menuItem(id: ?, label: ?, cb: ?, active: ?) → void
| arg | type | description |
|---|
| id | ? | |
| label | ? | |
| cb | ? | |
| active | ? | |
titleTree(exiting: ?) → void
| arg | type | description |
|---|
| exiting | ? | |
hint(k2: ?, label: ?) → void
controls hint (bottom right)
| arg | type | description |
|---|
| k2 | ? | |
| label | ? | |
cardTree(phase: ?, k: ?) → void
| arg | type | description |
|---|
| phase | ? | |
| k | ? | |
totalLocks( ) → void
Ending
stat(label: ?, value: ?, delay: ?) → void
| arg | type | description |
|---|
| label | ? | |
| value | ? | |
| delay | ? | |
put(name: ?, tree: ?) → void
| arg | type | description |
|---|
| name | ? | |
| tree | ? | |
after(t: ?, fn: ?) → void
refreshHud(force: ?) → void
toast(over: ?, title: ?, mask: ?, big: ?, dur: ?) → void
| arg | type | description |
|---|
| over | ? | |
| title | ? | |
| mask | ? | |
| big | ? | |
| dur | ? | |
showCard(phase: ?, k: ?) → void
| arg | type | description |
|---|
| phase | ? | |
| k | ? | |
placeBodyAtStart( ) → void
onScreen(name: ?) → void
Core events
editorUpdate(dt: ?) → void
Outside play the screens step aside so the editor's view stays clear.
onCallback(id: ?, data: ?) → void
| arg | type | description |
|---|
| id | ? | |
| data | ? | |