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
+12 -2
View File
@@ -19,7 +19,13 @@ void main() {
// in reportData at once exhausts the tablet when the driver encodes JSON.
const chapter = int.fromEnvironment('ART_CHAPTER', defaultValue: 0);
expect(chapter, inInclusiveRange(0, 2));
final game = Game(book, Progress.memory({'story_access_level': 11}));
final game = Game(
book,
Progress.memory({
'story_access_level': 11,
for (var i = 0; i < 12; i++) 'done_story_v1_$i': true,
}),
);
addTearDown(() => SystemChrome.setPreferredOrientations([]));
await binding.convertFlutterSurfaceToImage();
for (final orientation in [
@@ -54,7 +60,11 @@ void main() {
'discovery-$index-${orientation.name}-art',
);
final next = find.text(
index == 11 ? 'Return to the notebook' : 'Turn the page →',
index < 4
? 'Next leaf →'
: index == 11
? 'Return to the notebook'
: 'Turn the page →',
);
await tester.ensureVisible(next);
await tester.pumpAndSettle();