Expand Lumen stories and add island postcards
This commit is contained in:
+17
-3
@@ -355,15 +355,15 @@ Board key formats (`<key>`):
|
||||
|
||||
- `assets/campaign.json`: `{ premise, levels: [{ chapter, title, object, before, after, picture, clues, areas, illustrationAsset?, beforeContinuation?, afterContinuation? }] }`. `picture` is 49 characters of `0`/`1` (7×7, row-major). `clues` is a comma-separated list of forced-given indices. `areas` is `top,left,height,width` rectangles separated by `;` (labels A, B, C… in order).
|
||||
- `assets/notebook.json`: sixteen ordered records with stable `id`, `type`, `title`, optional `campaignIndex`, `speaker`, `illustrationAsset` and `textSource` (`recording`, `before`, `after`) or inline `text`, plus optional `continuation`. `Book.pageFor()` finds a campaign entry/puzzle/memory. Preserve the first six IDs when extending the chapter.
|
||||
- Campaign `beforeContinuation`/`afterContinuation` add narrative after the original passage, with one audio control after the full text. Cottage entries/memories inherit these by text source; custom recording leaves can supply their own `continuation`. Recorded scripts include both parts. Recording-source leaves read `baseText` for the original displayed passage. Every new continuation has narrator cues; the original take remains byte-identical as PCM and has its own prefix checksum in the manifest.
|
||||
- Campaign `beforeContinuation`/`afterContinuation` add narrative after the original passage, with one audio control after the full text. Cottage entries/memories inherit these by text source; custom recording leaves can supply their own `continuation`. Recorded scripts include both parts. Recording-source leaves read `baseText` for the original displayed passage. The lighthouse rewrite uses continuations only to separate Mara’s letter from the present-day narrator on two leaves; its audio is regenerated in full, with no preserved PCM prefixes.
|
||||
- Campaign balance: all area puzzles have at least seven initial single-clue deductions; solver comparison counts are capped at 3 for the key, 5 for the crossing chapter and 6 for the final chapter. These are regression bounds, not a substitute for player feedback. Every area puzzle still needs comparison and has a unique, no-guess solution.
|
||||
- Cottage `briefing`, `startCampaign` and `reveal` route to the entry, puzzle or memory leaf for levels 0–3. This migrates older saved routes while retaining marks, hint keys and completion awards. Chapters II/III use the existing screens.
|
||||
- `assets/narration/scripts.json`: canonical complete diary text, one record per recorded page (`pageId`, `text`, optional `baseText`, `continuation`, `continuationSpeaker`). `Book.load()` resolves `recording` base text by stable page ID; a missing script yields empty text.
|
||||
- `assets/narration/manifest.json`: source masters, text hashes, WAV/FLAC hashes and cues — the provenance record.
|
||||
- `assets/audio/narration_manifest.json`: runtime `{ tracks: { pageId: { file, durationMs, cues: [{ startMs, endMs, text }] } } }`. `Narrator` plays `assets/audio/<file>`.
|
||||
- Five Mara recordings exist: `cottage.dedication`, `cottage.window`, `cottage.match.memory`, `cottage.folded.note`, `cottage.lantern.sketch`. The match-puzzle leaf has no recording.
|
||||
- Twenty-three narrator tracks use `bm_george`: seven cottage prose leaves and `campaign.<4..11>.before/after`. `scripts.json` records speaker/voice/speed; the renderer accepts `--speaker Narrator` to preserve Mara’s original takes. `--append-continuations` appends only the narrator additions to existing PCM masters and records the original PCM frame count and checksum; use it when adding to existing recordings. The asset checker validates narrator scripts against notebook/campaign text.
|
||||
- `audio()` follows the current cue speaker, including the switch from Mara to the narrator on the window/match memory pages. Both original and continuation paragraphs use cue highlighting.
|
||||
- `tool/compile_mara_story.py` compiles `assets/narration/STORY.md` into all 28 scripts and displayed prose. `cast.json` defines Mara and the narrator; `performance.json` pins Qwen VoiceDesign and its scene directions. `scripts/render_qwen_narration.py --story-root assets --flac-dir assets/audio` stages or publishes complete recordings. Twenty-three readings lead with the narrator, switching to Mara for her dialogue. The asset checker validates displayed text, cast, actual model instructions, cue coverage and lossless archives.
|
||||
- `audio()` follows the current cue speaker, including the switch from Mara to the narrator on the window/match memory pages. Both letter and present-day paragraphs use cue highlighting.
|
||||
- `audio()` uses the story ID or `campaign.<index>.before/after`, with a visible speaker label. Never show a recording control for an ID without a bundled track.
|
||||
- `discoveryArt()` returns only a text placeholder until `Game.recovered(index)` is true. This gates both watercolours and pixel fallbacks; entry, inspection and closing leaves never call it, regardless of completed progress. The helper also rejects calls outside a memory/reveal screen. The repair note uses a text action rather than a picture hotspot; completed saves must not re-enable artwork on earlier leaves. Contextual cottage/background art is separate from the discovery images.
|
||||
- The `check` Android flavor (`com.lumen.daily.check`) isolates device automation from the user’s installed QA app and progress.
|
||||
@@ -550,3 +550,17 @@ Halloween now uses `Book.paperAsset` through `PaperSkin` on all notebook pages.
|
||||
into stable content and cast scripts. `RegionButton` provides a filled selected
|
||||
state; `Board` overlays a pointer-transparent frame around the selected region.
|
||||
`test/region_selection_test.dart` verifies frame geometry, marking and book skins.
|
||||
|
||||
## Island postcard collection (November 2026)
|
||||
|
||||
`lib/domain/postcards.dart` contains fourteen original written scenes;
|
||||
`postcard_patterns.dart` freezes their 42 independently validated boards.
|
||||
`Game` exposes `Screen.postcards` and `Mode.postcard`, with global save keys
|
||||
and exactly-once completion/break claims. `ui/postcards.dart` adds the shelf
|
||||
activities and collection; `main.dart` uses the existing accessible puzzle
|
||||
layout and a scrollable postcard reader. Global puzzle starts preserve book
|
||||
reading routes. `services/ad_pacing.dart` persists full-screen spacing and a
|
||||
six-per-day automatic cap. `services/play_metrics.dart` keeps local daily
|
||||
activity and SDK revenue receipts, with currencies and test units separated.
|
||||
QA/debug Settings can copy its JSON. There is no analytics upload or campaign
|
||||
attribution. See [the operating guide](RETENTION_MONETIZATION.md).
|
||||
|
||||
Reference in New Issue
Block a user