# AmeliaController
<!-- zero:scaffolded-readme -->
<!-- Replace the line below with what this component provides and who
consumes it, then delete both comment lines. -->
TODO: describe this component.
# murmurwood
<!-- 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.
# DioramaCamera
<!-- zero:scaffolded-readme -->
<!-- Replace the line below with what this component provides and who
consumes it, then delete both comment lines. -->
TODO: describe this component.
# rimecrest
<!-- 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.
# Talkable
<!-- zero:scaffolded-readme -->
<!-- Replace the line below with what this component provides and who
consumes it, then delete both comment lines. -->
TODO: describe this component.
# game.town.architecture
HD-2D pixel-textured town architecture for Emberbrook, built from primitives and nearest-filtered pixel-art materials in `art/arch/`.
```luau
local Arch = require("game.town.architecture")
Arch.house(name, parent, x, z, { width, depth, storeys, style, doorX, windows, shop, awning, facing, lit, gableFront, ivy, flowers, chimney, pitch })
Arch.gateTower(name, parent, x, z, { size, height, spireHeight, facing, lit })
Arch.townWall(name, parent, x1, z1, x2, z2, { height, thickness, ivy })
Arch.fountain(name, parent, x, z, { radius })
Arch.marketStall(name, parent, x, z, { awning, wares, width, facing })
Arch.well(name, parent, x, z, { facing })
Arch.chapel(name, parent, x, z, { facing, lit })
```
Styles are `stone_thatch`, `timber_thatch`, `timber_red`, `stone_slate` and `timber_slate`. Shops are `bakery`, `inn` and `general`. Awning colours are `red`, `green`, `blue` and `purple`. Wares are `bread`, `apples`, `pumpkins` and `cloth`.
To rebuild the materials, run `execute { file = "/zero/source/art/arch/make_materials.luau" }`. To re-cut a generated cutout, run `execute { file = "/zero/source/art/arch/cut.luau", args = { sheet, names, cols, scale } }`.
# StoryDirector
<!-- zero:scaffolded-readme -->
<!-- Replace the line below with what this component provides and who
consumes it, then delete both comment lines. -->
TODO: describe this component.
# director
One-paragraph description of what this module provides and who consumes
it.
## Exports
- `M.exampleFn(arg) -> result` — what it does and when to call it.
- `M.exampleValue: type` — what value it carries.
## Usage
Replace `<identity>` with the string `asset.create` returned — this
module's source path with `/` written as `.` and each segment's type
suffix dropped, the way a module at `/source/lib/thing.module` is
`lib.thing` and one at `/source/kit.package/thing.module` is
`kit.thing`.
```luau
local M = require("<identity>")
M.exampleFn("foo")
```
## Notes
- Anything callers need to know about THIS module: required runtime
ordering, state ownership, side effects.
# uiroot
<!-- 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.
# battle
Persona-style turn-based combat for Amelia (HD-2D, storybook crimson/ink/parchment/gold palette).
```lua
local Battle = require("game.battle.battle")
Battle.wireEvents() -- once at play start: Events "encounter"(pool, opts) -> start, then Areas.grace(4)
Battle.start({ "bramblewisp", "mossback" }, function(result) end) -- "win" | "lose" | "flee"
Battle.start({ "frostling", "rime_wolf" }, cb, { arena = "snow" })
Battle.start({ "hush_warden" }, cb, { arena = "forest_hush", boss = true })
Battle.isActive()
Battle.stop() -- abort, no onEnd / battleEnd
Battle.resetParty() -- every member back to level 1, full HP/SP (in State)
```
opts: `arena` = "forest" | "forest_hush" | "snow" (default: "snow" when State.area() is rimecrest, else "forest"; a boss id forces "forest_hush"), `boss` (boss camera + no escape; implied by a boss id), `noEscape`, `music` (track override).
State: party = `State.party()` (1-3 members, layout adapts), stats in `State.member(id)` = {level, exp, hp, sp}; gold `State.addGold`, drops `State.addItem`, battle items consume `State` items (honey_tonic, moon_dew, wakebell, storm_jar).
Events emitted: `battleStart`(pool), `battleEnd`(result, pool), `music`("battle" | "boss" | "victory", then the area's music), `sfx`(name): battle_start, hit, weak, crit, null, ko, one_more, all_down, all_out, finish, victory, levelup, defeat, menu_move, menu_confirm, menu_back, menu_denied, heal, guard, cast, flee, silence, summon, boss_roar, boss_phase, boss_defeat.
Boss `hush_warden`: phase 1 weak Light / null Shade; at 50% HP phase 2 (sprite rekindles, weak Flame / resist Light / null Shade, acts twice, casts Silence = skills sealed 2 turns, summons 2 Gloomcaps). Rimecrest foes: `frostling` (weak Flame, null Frost), `rime_wolf` (weak Bolt, resists Gale & Frost).
The arena spawns at x=1000 (`game.battle.arena`), with its own camera (`BattleCamera`, priority 20). Themed arenas may retint Sun/Ambient/HeightFog and restore them on cleanup.
Input: `game.input.battle` inputMap (group `battle`, suppresses `player`). UI screens: `battle_hud`, `battle_pop`, `battle_flash`, `battle_splash`.
Debug: `Battle.debug.auto`, `.press(name)`, `.speed`, `.log`, `.info()`, `.hurt(frac)` (sets every foe's HP to frac of max).
Siblings: `data` (stats/skills/items/foes), `arena` (dioramas, sprites, camera rig, projection), `vfx` (spell effects), `ui` (widget trees), `tools/cut.luau` (sprite-sheet cutter; `clear = {{x0,y0,x1,y1}}` drops rects).
# emberbrook
<!-- 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.
# hooks
<!-- 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.
# dialogue
<!-- 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.
# areas
<!-- 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.
# 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.
# state
<!-- 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.
# events
<!-- 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.
# tiltshift
<!-- zero:scaffolded-readme -->
<!-- Replace the line below with what this shader provides and who
consumes it, then delete both comment lines. -->
TODO: describe this shader.