title
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
title
<!-- 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.ui.title — the title screen. State 1 "press": key art, the AMELIA logo breathing in, "Press any button". State 2 "menu": New Game / Continue (greyed with no save) / Settings. local Title = require("game.ui.title") Title.show(function(choice) ... end) -- choice = "new" | "continue" Title.isOpen() Title.hide() "continue" has already loaded the most recent save into game.world.state (via game.ui.saves) before onChoice runs; "new" has called State.reset(). The caller then enters the area: Areas.enter(State.area(), State.flag... ). Input: claims game.input.menu while open (any of its buttons = "press any button"); mouse / touch clicks on the whole screen and on each entry work.
prime( ) → void
logoSvg( ) → string
the logo: carved Garamond capitals with a gold gradient stroke, a lantern flame for the dot of the I, and a filigree underline. Pure SVG so it stays crisp at any size.
artCrop( ) → number
vertical crop offset: centre the 3:2 art on the 16:9 canvas, biased up a little so the heroine's lantern sits above the menu line
build( ) → any
render( ) → void
sfx(name: string) → void
| arg | type | description |
|---|---|---|
| name | string |
deactivateInput( ) → void
finish(choice: string) → void
| arg | type | description |
|---|---|---|
| choice | string |
choose(i: number) → void
| arg | type | description |
|---|---|---|
| i | number |
handle(name: string) → void
| arg | type | description |
|---|---|---|
| name | string |
_activateInput( ) → void
onCallback(id: string, _data: any) → void
| arg | type | description |
|---|---|---|
| id | string | |
| _data | any |
show(onChoice: ((string) → void
| arg | type | description |
|---|---|---|
| onChoice | ((string |
hide( ) → void
isOpen( ) → boolean
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.