Expand Lumen stories and add island postcards
This commit is contained in:
@@ -20,13 +20,29 @@ Android is the tested target. iOS project scaffolding and test AdMob configurati
|
||||
|
||||
Progress starts fresh in Flutter, as requested. Old Java `lumen.xml` saves are **not imported or read**. Flutter keeps its own local preferences through `shared_preferences`; no account or game backend is required. Uninstalling loses local progress, and the daily date follows the device calendar.
|
||||
|
||||
## Island postcards and repeat play
|
||||
|
||||
The bookshelf now puts today's puzzle and **Island postcards** within reach.
|
||||
Fourteen short outings with Mara add **42 fixed puzzles** and fourteen original
|
||||
written scenes to collect. Outings never expire; partial grids and collected
|
||||
postcards are saved independently of the books. The new postcards are English
|
||||
text without recorded narration; their controls also support German.
|
||||
|
||||
A completed outing can offer one ad after its postcard is read and kept.
|
||||
Automatic ads have a three-minute opening grace period, three-minute spacing
|
||||
and a six-per-day cap. Existing story-break limits remain; practice milestones
|
||||
and postcard outings cannot offer another ad on replay. QA Settings includes a
|
||||
local activity/revenue report. See [the retention and measurement guide](docs/RETENTION_MONETIZATION.md)
|
||||
for the acquisition assumptions, exact placement rules, test coverage and the
|
||||
campaign attribution still required to establish break-even.
|
||||
|
||||
## Artwork and readings
|
||||
|
||||
All app-created text uses the bundled Dancing Script handwriting font, including grid clues and menus. Lit cells are shaded with pencil strokes, and dark cells use a drawn cross; neither depends on a symbol-font fallback. Original watercolour harbour, cloth cover, cottage, lantern and single-page art remain bundled for offline use. Native text sits directly on the page’s blank writing area. Art prompts and provenance are in [assets/artwork](assets/artwork/README.md); the font’s OFL license ships in the app’s open-source licenses.
|
||||
|
||||
Campaign discoveries now support optional watercolour keepsakes declared in the campaign data. All twelve discoveries have illustrations, and the opening match memory uses the same match watercolour. Each object’s artwork appears only on its discovery leaf after its own pattern is solved. Entry pages, the earlier repair note and the closing leaf never display discovery art, even with completed progress. Pixel pictures are also hidden until solved and remain the fallback for missing artwork.
|
||||
|
||||
Twenty-eight fixed, pre-rendered synthetic recordings play from bundled PCM16 WAV files. Twenty-four readings include the expanded story; the original PCM takes are preserved, followed by the added narrator passages. A single Play control covers the whole page and highlighting follows both parts. Mara’s five original British-English diary takes are preserved; twenty-three guiding passages use a distinct narrator voice, covering the cottage entries/memories/closing leaf and the later campaign introductions and discoveries. Readings start automatically 3 seconds after opening a narrated page, are labelled by speaker and support pause/resume, stop, replay, speed and passage highlighting. Page turns and backgrounding stop playback. WAV avoids the Huawei API 26 FLAC playback issue; archival FLACs stay out of the APK. There is no Android reader, runtime synthesis or audio download. See [narration provenance](assets/narration/README.md).
|
||||
Twenty-eight offline Qwen VoiceDesign recordings accompany the rewritten lighthouse story. Mara's letters, memories and dialogue use a warm older British voice; a distinct narrator follows the present-day journey. Scene instructions shape warmth, dry humour, uncertainty and relief. A single Play control covers each complete reading, and highlighting and speaker labels follow the cast cues. Readings start after three seconds and support pause/resume, stop, replay and speed. Page turns and backgrounding stop playback. Bundled PCM16 WAV avoids the Huawei API 26 FLAC playback issue; lossless FLAC archives stay out of the app. There is no runtime synthesis or audio download. See [the manuscript and narration workflow](assets/narration/README.md).
|
||||
|
||||
Four bundled, original sound textures accompany the story: air around the cottage, harbour water, the stream under the bridge and wind around the lighthouse. They loop quietly, fade when locations change and duck beneath narration. Sound & atmosphere offers a saved mute switch and independent atmosphere volume. Leaving the story or backgrounding the app stops them; readings start after a 3-second pause on narrated pages. These are procedurally rendered soundscapes, not field recordings. See [soundscape provenance](assets/audio/AMBIENCE.md).
|
||||
|
||||
@@ -85,7 +101,7 @@ flutter drive --driver test_driver/integration_test.dart \
|
||||
--dart-define=QA_TEST=true -d YOUR_ANDROID_DEVICE
|
||||
```
|
||||
|
||||
The forty-nine unit/widget tests cover 40 Java reference boards (including signed 64-bit seeds), 300 graded generated boards, solver counts against 300 exhaustive small systems, all twelve campaign solutions, bounded campaign comparison chains, solved-grid inspection after restart, discovery animation/replay, reward-gated hints in every mode, declined/unavailable ads and duplicate/stale reward callbacks, streaks, fresh progress, read-ahead, completion awards, campaign read-ahead restoration, gesture isolation, swipes over text and blank paper, cancelled drags, vertical scrolling, landscape and larger text; it also checks every cottage leaf with the real font at 1.5× text, all four hint controls, legacy route migration and exactly-once completion after restart. Reference parity protects the port’s rules; it is not used to migrate saves.
|
||||
The unit/widget tests cover 40 Java reference boards (including signed 64-bit seeds), 300 graded generated boards, solver counts against 300 exhaustive small systems, all twelve campaign solutions, bounded campaign comparison chains, solved-grid inspection after restart, discovery animation/replay, reward-gated hints in every mode, declined/unavailable ads and duplicate/stale reward callbacks, streaks, fresh progress, read-ahead, completion awards, campaign read-ahead restoration, gesture isolation, swipes over text and blank paper, cancelled drags, vertical scrolling, landscape and larger text; it also checks every cottage leaf with the real font at 1.5× text, all four hint controls, legacy route migration and exactly-once completion after restart. Reference parity protects the port’s rules; it is not used to migrate saves.
|
||||
|
||||
The physical-device integration test uses a disposable in-memory game plus an isolated QA disk round-trip. It plays all five real WAV files, checks pause/resume, explores the six leaves, verifies bookmarks/discoveries, solves match and lantern puzzles and checks exactly-once awards. Screenshots are saved in `artifacts/flutter-check/`. The release smoke script requires an active, unmuted 24 kHz media track in the tablet’s audio mixer as well as exercising the actual play/pause/resume UI and restores the last page after process restart, without injecting puzzle fixtures. The release build includes a targeted R8 keep rule for the database constructor used reflectively by AdMob’s WorkManager dependency. Advertising is disabled for the automated story tests; real UMP startup is checked separately in the normal build. Reward delivery, cancellation and ad no-fill still need manual release testing with your final AdMob configuration.
|
||||
|
||||
@@ -104,7 +120,8 @@ The physical-device integration test uses a disposable in-memory game plus an is
|
||||
| `lib/ui/` | Page layout, margin gestures, native grid semantics and illustrated keepsakes |
|
||||
| `lib/services/` | Local storage, bundled playback and consent-gated AdMob |
|
||||
| `assets/campaign.json` | Authored twelve-picture campaign |
|
||||
| `assets/narration/scripts.json` | Canonical spoken diary text |
|
||||
| `assets/narration/STORY.md` | Lighthouse manuscript; compile with `tool/compile_mara_story.py` |
|
||||
| `assets/narration/scripts.json` | Compiled spoken text and cast segments |
|
||||
| `assets/audio/` | Runtime WAV files, archival FLAC exports and passage timing manifest |
|
||||
| `legacy/` | Archived Java version 1.7, excluded from Flutter builds |
|
||||
|
||||
@@ -119,7 +136,7 @@ For Android, supply the app ID using Gradle property `ADMOB_APP_ID`. Rewarded/in
|
||||
See [ROADMAP.md](ROADMAP.md) for the proposed 30–40-leaf campaign, page variety and further exploration ideas. Smaller follow-ups and asset tasks are tracked in [TODO.md](TODO.md).
|
||||
|
||||
|
||||
Chapter I page records live in `assets/notebook.json`. The original six IDs and `story_v1_0`–`story_v1_3` puzzle keys are preserved. Existing cottage briefing, puzzle and reveal saves reopen on their corresponding leaves. Reading ahead never awards a puzzle completion; leaving the cottage opens Chapter II even when patterns remain unfinished. All seven added prose leaves have narrator recordings; the original five diary takes are retained as PCM within the expanded recordings.
|
||||
Chapter I page records live in `assets/notebook.json`. The original six IDs and `story_v1_0`–`story_v1_3` puzzle keys are preserved. Existing cottage briefing, puzzle and reveal saves reopen on their corresponding leaves. Reading ahead never awards a puzzle completion; leaving the cottage opens Chapter II even when patterns remain unfinished. All prose leaves have complete Qwen recordings. The five letter/memory pages retain Mara as their lead speaker, with narrator transitions on the window and match-memory pages.
|
||||
|
||||
To review the complete chapter on an isolated QA install, run `flutter drive --driver test_driver/integration_test.dart --target integration_test/cottage_test.dart --flavor qa --dart-define=QA_TEST=true -d YOUR_ANDROID_DEVICE`. This traverses all sixteen leaves, checks bookmarks/restart, rotates the compass puzzle at larger text, solves all four patterns and checks QA disk persistence. It saves eight screenshots in `artifacts/flutter-check/`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user