Complete cottage notebook with narration and discovery-only artwork

This commit is contained in:
Hadrian Burkhardt
2026-11-01 00:18:34 +01:00
parent 36fbbce6ef
commit 6bd14a9e20
90 changed files with 2394 additions and 221 deletions
+25 -27
View File
@@ -118,14 +118,13 @@ void main() {
await tap('Bookmark');
await tap('Next leaf →');
await shot('06-lantern');
await tester.tap(
expect(
find.bySemanticsLabel(
'Watercolour of Mara’s blue storm lantern. Tap to examine the repaired handle.',
),
findsNothing,
);
await tester.pumpAndSettle();
await tap('Keep that thought');
expect(store.flag('notebook_handle_seen'), true);
expect(store.flag('notebook_handle_seen'), false);
await tap('Contents');
await tap('Return to my ribbon bookmark');
expect(g.storyIndex, 4);
@@ -151,9 +150,9 @@ void main() {
g.showStory(5);
await tester.pumpAndSettle();
await tap('Follow the lantern into the next entry →');
expect(g.screen, Screen.briefing);
await tap('Restore the pattern →');
expect(g.screen, Screen.game);
expect(g.storyIndex, 6);
await tap('Turn to the pattern →');
expect(g.storyIndex, 7);
final lantern = g.puzzle!;
for (var i = 0; i < 49; i++) {
while (g.cells[i] != (lantern.solution[i] == 1 ? 1 : 2)) {
@@ -161,9 +160,17 @@ void main() {
}
}
await tester.pumpAndSettle();
expect(g.screen, Screen.reveal);
expect(g.storyIndex, 8);
expect(g.solved, 2);
await shot('07-campaign-reveal');
g.showStory(5);
await tester.pumpAndSettle();
await tap('Read Gran’s margin note');
await tap('Keep that thought');
expect(store.flag('notebook_handle_seen'), true);
g.showStory(8);
await tester.pumpAndSettle();
// The later campaign leaves need swipes too, including read-ahead.
Future<void> swipeWriting(String text, double dx) async {
final target = find.text(text);
@@ -172,38 +179,29 @@ void main() {
await tester.pumpAndSettle();
}
await swipeWriting('The lantern', 170);
expect(g.screen, Screen.briefing);
await swipeWriting('Something to carry the flame', -170);
expect(g.screen, Screen.reveal);
await swipeWriting('The lantern', -170);
expect(g.screen, Screen.briefing);
expect(g.campaignIndex, 2);
await swipeWriting('A light at the door', -170);
expect(g.storyIndex, 9);
await swipeWriting('Under the loose floorboard', -170);
expect(g.screen, Screen.game);
expect(g.storyIndex, 10);
await tester.ensureVisible(find.byKey(const ValueKey('cell-0')));
await tester.tap(find.byKey(const ValueKey('cell-0')));
await tester.pumpAndSettle();
final keyMarks = List<int>.of(g.cells);
await swipeWriting('Under the loose floorboard', -170);
await tap('Keep solving');
expect(g.screen, Screen.game);
expect(g.storyIndex, 10);
await swipeWriting('Under the loose floorboard', -170);
await tap('Read ahead');
expect(g.screen, Screen.reveal);
expect(g.storyIndex, 11);
expect(g.recovered(2), false);
expect(g.solved, 2);
await shot('08-campaign-read-ahead');
await swipeWriting('The brass key', -170);
expect(g.screen, Screen.briefing);
expect(g.campaignIndex, 3);
await swipeWriting('A journey kept ready', -170);
expect(g.storyIndex, 12);
await swipeWriting('A direction in the dark', 170);
expect(g.screen, Screen.reveal);
expect(g.campaignIndex, 2);
await swipeWriting('The brass key', 170);
expect(g.screen, Screen.briefing);
await swipeWriting('Under the loose floorboard', -170);
expect(g.screen, Screen.game);
expect(g.storyIndex, 11);
await swipeWriting('A journey kept ready', 170);
expect(g.storyIndex, 10);
expect(g.cells, keyMarks);
expect(g.solved, 2);
// Exercise real plugin persistence without touching main-app data.