game.ui.theme — palette, type and the small vector glyphs every Spooky
Spook Spook screen is drawn with. Pure data + tiny node helpers; no state.
L(text: string, style: any?, id: string?) → void
| arg | type | description |
|---|
| text | string | |
| style | any? | |
| id | string? | |
V(style: any?, children: any?, id: string?, props: any?) → void
| arg | type | description |
|---|
| style | any? | |
| children | any? | |
| id | string? | |
| props | any? | |
H(style: any?, children: any?, id: string?, props: any?) → void
| arg | type | description |
|---|
| style | any? | |
| children | any? | |
| id | string? | |
| props | any? | |
SVG(svg: string, w: number, h: number, style: any?, id: string?) → void
| arg | type | description |
|---|
| svg | string | |
| w | number | |
| h | number | |
| style | any? | |
| id | string? | |
IMG(src: string, style: any?, id: string?) → void
| arg | type | description |
|---|
| src | string | |
| style | any? | |
| id | string? | |
abs(l: any, t: any, w: any, h: any, extra: any?) → void
| arg | type | description |
|---|
| l | any | |
| t | any | |
| w | any | |
| h | any | |
| extra | any? | |
entrance(delay: number, dy: number?) → void
| arg | type | description |
|---|
| delay | number | |
| dy | number? | |
breathe(period: number?, lo: number?, hi: number?) → void
| arg | type | description |
|---|
| period | number? | |
| lo | number? | |
| hi | number? | |
skullSvg(fill: string, eye: string, crack: boolean?) → string
A chunky little skull: the HP pip, the head-count pip.
| arg | type | description |
|---|
| fill | string | |
| eye | string | |
| crack | boolean? | |
bonePipSvg(fill: string, stroke: string) → string
A short upright bone: the stat pip.
| arg | type | description |
|---|
| fill | string | |
| stroke | string | |
longBoneSvg( ) → string
A long horizontal bone with ectoplasm drips: the HP bar under the skulls.
boneIconSvg(fill: string?) → string
A tilted bone: the bone-count icon.
| arg | type | description |
|---|
| fill | string? | |
socketSvg( ) → string
A glowing socket ring.
reticleSvg( ) → string
Crosshair: four bone chips around a dot.