cortico-world-fun 0.3.0 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +571 -404
  2. package/PUBLISHING.md +37 -85
  3. package/README.md +199 -47
  4. package/assets/home/chibi-cards.webp +0 -0
  5. package/assets/home/chibi-chatting.webp +0 -0
  6. package/assets/home/chibi-cooking.webp +0 -0
  7. package/assets/home/chibi-gaming.webp +0 -0
  8. package/assets/home/chibi-idle.webp +0 -0
  9. package/assets/home/chibi-looking_outside.webp +0 -0
  10. package/assets/home/chibi-painting.webp +0 -0
  11. package/assets/home/chibi-reading.webp +0 -0
  12. package/assets/home/chibi-sleeping.webp +0 -0
  13. package/assets/home/chibi-watching.webp +0 -0
  14. package/assets/icon.png +0 -0
  15. package/describe.json +365 -48
  16. package/dist/webui.js +7515 -848
  17. package/package.json +16 -10
  18. package/src/ENV_PROMPT.md +11 -10
  19. package/src/bridge-echo-solo.json +137 -0
  20. package/src/config.js +356 -176
  21. package/src/creek-letter.js +3 -0
  22. package/src/definition.js +121 -106
  23. package/src/exploration.js +2 -2
  24. package/src/home-room.js +895 -0
  25. package/src/journeys.js +1 -1
  26. package/src/phases.js +5 -10
  27. package/src/place-cover.js +176 -0
  28. package/src/place-library.js +794 -0
  29. package/src/place-transfer.js +162 -0
  30. package/src/state.js +717 -596
  31. package/src/story-canon.js +21 -0
  32. package/src/story-dm.js +140 -0
  33. package/src/story-examples.js +597 -78
  34. package/src/story-free.js +298 -0
  35. package/src/story-images.js +474 -0
  36. package/src/story-library.js +187 -20
  37. package/src/story-node-limit.js +55 -0
  38. package/src/story-packs.js +333 -16
  39. package/src/story-panel.js +314 -0
  40. package/src/story-read.js +113 -0
  41. package/src/story-reliability.js +95 -0
  42. package/src/story-secrets.js +485 -0
  43. package/src/story-venue-migration.js +113 -0
  44. package/src/swapped-plaque-riddle.json +167 -0
  45. package/src/time.js +16 -0
  46. package/src/user-venues.js +44 -15
  47. package/src/venues.js +93 -9
  48. package/src/world.js +3690 -1847
  49. package/dist/artwork.js +0 -64
  50. package/dist/stories.js +0 -395
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "cortico-world-fun",
3
- "version": "0.3.0",
3
+ "version": "0.7.5",
4
4
  "type": "module",
5
- "description": "娱乐时间 —— 给 Coopanion 桌宠二十处真能去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。进门、逛摊位、买纪念品、拍张照、吃喝点什么,收摊记一笔。能和「鱼的每一天」「生图工作室」联动,但都不依赖。",
5
+ "description": "从0开始的肥鱼大冒险 —— 给 Coopanion 桌宠二十处真能去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。进门、逛摊位、买纪念品、拍张照、吃喝点什么,回家记一笔。能和「鱼的每一天」「生图工作室」联动,但都不依赖。\n\n「鱼的小世界」(cortico-world-map)已经并入这里:它原来的地点与房间现在就是本插件的「地点册」与「家」——场所、画风、关联、封面都在地点册里编辑,不必再装两个包;从旧版导出的备份可以在「地点册 → 整理与设置 → 从小世界迁入」一次性搬过来。\n\n0.7.5 把故事工坊收成一个创建入口(三个起点 + 从文件导入),去掉重复的右侧栏;0.7.4 把地点册改成「左栏分组 + 右侧封面列表」(六项计数 + 整理与设置,窄屏折成横向筛选),并把「允许她自己出门」改成只留许可、时间跟随「鱼的每一天」的「她自己的时间」(不再有自己的时段、定时器与 fun.home.free 事件)。\n\n0.7.3 是设置重组:故事长度、主持接口地址与模型、剧情图片来源搬进配置页(热改,旧值一次性迁移);「自动配图」开关移到出游页顶部;本地插画搬到「地点册 → 本地插画」;出游「设置」只剩「高级设置」(API Key、直连手动出图、自定义工作流)。面板 id 与页签名不变。",
6
6
  "license": "MIT",
7
7
  "author": "青",
8
8
  "repository": {
@@ -39,18 +39,21 @@
39
39
  "PUBLISHING.md"
40
40
  ],
41
41
  "scripts": {
42
- "test": "node test/story-packs.test.mjs && node test/story-world.test.mjs && node test/journal-world.test.mjs && node test/branches.test.mjs && node test/journeys.test.mjs && node test/exploration.test.mjs && node test/venues.test.mjs && node test/state.test.mjs && node test/events.test.mjs && node test/memories.test.mjs && node test/phases.test.mjs && node test/keepsakes.test.mjs && node test/user-venues.test.mjs && node test/aquarium.test.mjs && node test/wishes.test.mjs && node test/choices.test.mjs && node test/world.test.mjs && node test/panels.test.mjs",
43
- "verify": "node tools/fix-ps1-bom.mjs install.ps1 && node tools/check-prompt.mjs && node tools/check-isolation.mjs && node tools/smoke.mjs && node tools/make-describe.mjs --check",
42
+ "build:webui": "esbuild webui/webui.js --bundle --format=esm --platform=browser --target=es2022 --charset=utf8 --outfile=dist/webui.js",
43
+ "pretest": "npm run build:webui",
44
+ "prepack": "npm run build:webui",
45
+ "test": "node test/story-secrets.test.mjs && node test/story-images.test.mjs && node test/story-migration.test.mjs && node test/story-venue-migration.test.mjs && node test/story-config.test.mjs && node test/story-stages.test.mjs && node test/story-dm.test.mjs && node test/story-packs.test.mjs && node test/story-panel.test.mjs && node test/story-world.test.mjs && node test/story-free.test.mjs && node test/story-text.test.mjs && node test/story-read-cache.test.mjs && node test/memory-trash.test.mjs && node test/journal-world.test.mjs && node test/branches.test.mjs && node test/journeys.test.mjs && node test/exploration.test.mjs && node test/venues.test.mjs && node test/state.test.mjs && node test/events.test.mjs && node test/memories.test.mjs && node test/phases.test.mjs && node test/keepsakes.test.mjs && node test/user-venues.test.mjs && node test/aquarium.test.mjs && node test/wishes.test.mjs && node test/choices.test.mjs && node test/world.test.mjs && node test/panels.test.mjs && node webui/story/webui.test.mjs && node test/place-library.test.mjs && node webui/places/webui.test.mjs && node test/home-room.test.mjs && node test/home-entry.test.mjs && node test/home-tools.test.mjs && node test/home-circle.test.mjs && node webui/home/webui.test.mjs",
46
+ "verify": "node tools/check-webui.mjs && node tools/fix-ps1-bom.mjs install.ps1 && node tools/check-prompt.mjs && node tools/check-isolation.mjs && node tools/smoke.mjs && node tools/make-describe.mjs --check",
44
47
  "describe": "node tools/make-describe.mjs",
45
48
  "check:publish": "node tools/publish-check.mjs --online",
46
49
  "check:isolation": "node tools/check-isolation.mjs",
47
50
  "verify:published": "node tools/verify-published.mjs",
48
- "prepublishOnly": "node test/story-packs.test.mjs && node test/story-world.test.mjs && node test/journal-world.test.mjs && node test/branches.test.mjs && node test/journeys.test.mjs && node test/exploration.test.mjs && node test/venues.test.mjs && node test/state.test.mjs && node test/events.test.mjs && node test/memories.test.mjs && node test/phases.test.mjs && node test/keepsakes.test.mjs && node test/user-venues.test.mjs && node test/aquarium.test.mjs && node test/wishes.test.mjs && node test/choices.test.mjs && node test/world.test.mjs && node test/panels.test.mjs && node tools/check-prompt.mjs && node tools/check-isolation.mjs && node tools/smoke.mjs && node tools/make-describe.mjs --check && node tools/publish-check.mjs --online"
51
+ "prepublishOnly": "npm test && npm run verify && node tools/publish-check.mjs --online"
49
52
  },
50
53
  "cortico": {
51
54
  "kind": "world",
52
55
  "api": 6,
53
- "displayName": "娱乐时间",
56
+ "displayName": "从0开始的肥鱼大冒险",
54
57
  "icon": "assets/icon.png",
55
58
  "describe": "describe.json",
56
59
  "webUiClient": "dist/webui.js",
@@ -59,13 +62,16 @@
59
62
  ],
60
63
  "locales": {
61
64
  "zh": {
62
- "displayName": "娱乐时间",
63
- "description": "给 Coo 二十处能真去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。她说一声进门,一处一处地逛项目、抽个签、买点纪念品、拍张照、喝杯奶茶,收摊时回执把这一趟收成一句话,接着去记进自己的日程。\n\n能和别的插件联动,但都不依赖:装了「鱼的每一天」时,日程叫醒里会顺手提到这块、收摊回执也会提醒她去 feast_life_play 记一笔;咖啡店、奶茶店、餐厅、夜市吃的东西去「鱼的每一天」点一道,那里才有九维口感、香气和余韵——没装就只知道喝了杯奶茶,不编味道。装了「生图工作室」时,收摊回执会告诉她发图该填哪个 scene、哪身衣服;素材库里没有的那几处会明说不用填,绝不替她编一个不存在的场景名。这些插件一个都不装也照样能逛,库挪走了也不影响。\n\n0.3.0 新增用户自填剧情包、两站出游、未完行程恢复、长期探索档案与可检索的出游手账。四个面板配原创地点插画、沿途时间线和纪念品图标。用户剧情与地点配置独立保存,预设只提供少量可停用示例,自填地点无剧情也可正常游玩。"
65
+ "displayName": "从0开始的肥鱼大冒险",
66
+ "description": "给 Coo 二十处能真去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。她说一声进门,一处一处地逛项目、抽个签、买点纪念品、拍张照、喝杯奶茶,回家时回执把这一趟收成一句话,接着去记进自己的日程。\n\n能和别的插件联动,但都不依赖:装了「鱼的每一天」时,日程叫醒里会顺手提到这块、回家回执也会提醒她去 feast_life_play 记一笔;咖啡店、奶茶店、餐厅、夜市吃的东西去「鱼的每一天」点一道,那里才有九维口感、香气和余韵——没装就只知道喝了杯奶茶,不编味道。装了「生图工作室」时,回家回执会告诉她发图该填哪个 scene、哪身衣服;素材库里没有的那几处会明说不用填,绝不替她编一个不存在的场景名。这些插件一个都不装也照样能逛,库挪走了也不影响。\n\n「鱼的小世界」(cortico-world-map)已经并入:它原来的地点与房间现在就是这里的「地点册」与「家」,不必再装两个包;旧版导出的备份可以在「地点册 → 整理与设置 → 从小世界迁入」一次性搬进来。\n\n0.3.3 提供默认收起的故事编辑器、本机加密的可选主持接口与可选图片来源;六个面板保留故事创作、隔离试玩、地点册、行程回忆与探索档案。随版本内置《折潮港的第七封回信·简编版》《雨停前的小小清单》《桥底下的回声》《被换掉的说明牌》四篇故事及折潮港、折角巷两个地点;旧五篇与样章场所已移除,升级先备份且只移除与内置内容完全一致的历史副本,用户其他创作、已出发行程和回忆保留。自填地点无剧情也可正常游玩。\n\n0.4.3 把六个面板统一成「旅行手账」:纸色版式与统一圆角、地点册按四组编辑并带固定保存栏、纪念册多一栏心愿、纪念品架排成展示柜、故事工坊按作品库浏览。不改存储模型,也不动已有行程与回忆。\n\n0.4.4 新增第七个面板「家」:一张 2D 房间、十个活动、可换背景与每个姿势的图;房间状态单独存在 fun/home/,不写行程、不读别的插件,没图也能用。\n\n0.7.0 把「家」推到 P5:站位按 Q 版实测落地板、随时段变色、可点热点、快照、画架、导出与导入房间,家同时成了入口(最近纪念品、未逛完的行程、第一个心愿、「今天想做什么」);新增只读 fun_home_state 与写 fun_home_activity,工具到 24 个。\n\n0.7.1 把「自己出门」改成方案 B:许可与时段两个键都开才叫醒,到点只推一条 internal 事件叫她先看当天日程(feast_life_now),不读「鱼的每一天」的日程、不挑地方、不替她出门;没上传角色图时改用随包内置的十张 Q 版立绘;修了画架选图必报 400;纪念品摆件因图标压字先不摆。\n\n0.7.2 是体检整改:六个只读故事查询加 10 分钟记忆化,重复问只回「没变化」,任何写操作立即失效,full:true 可重取;工具说明与提示词瘦身;文字通道默认开,聊天里六个查询都在、能直接开局推进,作者工具另有一个开关(默认关),关掉文字通道则只留候选与详情两个查询。\n\n0.7.3 是设置重组:故事长度、主持接口地址与模型、剧情图片来源搬进配置页(热改,旧值一次性迁移);「自动配图」开关移到出游页顶部;本地插画搬到「地点册 → 本地插画」;出游「设置」只剩「高级设置」(API Key、直连手动出图、自定义工作流)。面板 id 与页签名不变。\n\n0.7.4 把地点册改成「左栏分组 + 右侧封面列表」(六项计数 + 整理与设置,窄屏折成横向筛选);「允许她自己出门」改成只留许可、时间跟随「鱼的每一天」的「她自己的时间」,不再有自己的时段、定时器与 fun.home.free 事件。\n\n0.7.5 把故事工坊收成一个创建入口:展开后是「选项式故事 / 自由场景包 / 从文件导入」三个起点,删掉重复的右侧栏;导入可以选 .json 文件(≤ 32 KB),粘贴保留。"
64
67
  },
65
68
  "en": {
66
- "displayName": "Fun time",
67
- "description": "Twenty places she can actually go: an amusement park, an aquarium, a temple fair, a fan convention, a cinema, a zoo, a park, an arcade, a karaoke box, a museum, a cat cafe, a hike, a coffee shop, a bubble-tea stand, a restaurant, a library, a night market, a bathhouse, a flea market and a riverside walk. She walks in, wanders one spot at a time, buys a souvenir, takes a photo, has something to eat or drink, and the closing receipt sums the trip up in one line she can log into her own day.\n\nWorks alongside other plugins but depends on none. With Fish Every Day installed, the own-time menu points at this world and the closing receipt reminds her to log the trip with feast_life_play; food and drink at the coffee shop, tea stand and restaurant are meant to be ordered from Fish Every Day, where the nine-axis flavour profile and aroma actually live — without it she only knows she had a bubble tea, and she is told not to invent how it tasted. With the image studio installed, the receipt names the scene and outfit to draw; venues the library does not have are marked as such instead of inventing a name. None of them are required, and it still works if the image library is gone.\n\nVersion 0.3.0 adds user-authored story packs, two-stop outings, unfinished-trip recovery, permanent exploration and searchable trip journals. Four panels include original venue art, action timelines and souvenir icons. User stories and place settings are stored separately from plugin code; the small preset story collection is optional, and custom places work without stories."
69
+ "displayName": "Adventures of Fat Fish from Scratch",
70
+ "description": "Twenty places she can actually go: an amusement park, an aquarium, a temple fair, a fan convention, a cinema, a zoo, a park, an arcade, a karaoke box, a museum, a cat cafe, a hike, a coffee shop, a bubble-tea stand, a restaurant, a library, a night market, a bathhouse, a flea market and a riverside walk. She walks in, wanders one spot at a time, buys a souvenir, takes a photo, has something to eat or drink, and the closing receipt sums the trip up in one line she can log into her own day.\n\nWorks alongside other plugins but depends on none. With Fish Every Day installed, the own-time menu points at this world and the closing receipt reminds her to log the trip with feast_life_play; food and drink at the coffee shop, tea stand and restaurant are meant to be ordered from Fish Every Day, where the nine-axis flavour profile and aroma actually live — without it she only knows she had a bubble tea, and she is told not to invent how it tasted. With the image studio installed, the receipt names the scene and outfit to draw; venues the library does not have are marked as such instead of inventing a name. None of them are required, and it still works if the image library is gone.\n\nLittle World (cortico-world-map) is now folded in: its places and rooms are this plugin's Place Book and Home, so there is no need to keep both installed; a backup exported from the old version can be moved over in one go from Place Book → Tidy & settings → Import from Little World.\n\nVersion 0.3.3 adds a collapsed story editor, locally encrypted optional DM credentials and optional image sources. Six panels retain authoring, isolated playtests, places, trip memories and exploration. Four approved stories ship with the plugin (The Seventh Unsent Reply of Foldtide Harbour, A Small List Before the Rain Stops, Echo Under the Bridge, The Swapped Plaque), together with their harbour and alley places; all five old presets and the sample venue are gone. Upgrades back up originals and remove only byte-identical copies of the newly built-in content. Other user creations, active trips and memories remain. Custom places work without stories.\n\nVersion 0.4.3 unifies the six panels into one travel-journal look: paper tones and a single radius scale, a grouped place editor with a sticky save bar, a wish sidebar in the trip book, a display-cabinet shelf grid, and a library view in the story workshop. No storage changes; existing trips and memories are untouched.\n\nVersion 0.4.4 adds a seventh panel, Home: a 2D room with ten activities, replaceable background and pose art. Room state lives in fun/home/ and never writes trips or reads other plugins; it works with no art at all.\n\nVersion 0.7.0 takes Home to P5: placements measured against the chibi art, time-of-day tint, clickable hotspots, snapshots, an easel, room export and import, and Home as an entry point (recent souvenirs, unfinished trips, the first open wish, a \"what I want to do today\" note). Two tools join the roster: read-only fun_home_state and writing fun_home_activity, bringing it to 24.\n\nVersion 0.7.1 replaces auto-going-out with plan B: an allow switch plus time slots, and when both are on the World only pushes one internal event at that slot asking her to check the day's schedule (feast_life_now) first. It never reads Fish Every Day, never picks a place and never sends her out. Bundled chibi art now backs the room when no pose art is uploaded; the easel picker no longer fails with a 400; souvenir decorations stay off for now because their icons covered the room text.\n\nVersion 0.7.2 is the audit pass: the six read-only story queries are memoised for ten minutes (a repeat returns a short \"unchanged\" receipt, any write invalidates it, full:true forces a fresh copy), tool and prompt text is trimmed, and the text channel is on by default — chat has all six queries and can start and advance stories, while the author tool sits behind its own switch and turning the text channel off leaves just the candidate and detail queries.\n\nVersion 0.7.3 reorganises settings: story length, DM endpoint and model, and the story image source move into configuration (hot-applied, with a one-time migration of old values); the auto-image switch moves to the top of the Outing panel; local artwork moves to Place Book → Local artwork; Outing → Settings keeps only Advanced (API key, direct manual generation, custom workflow). Panel ids and page titles are unchanged.\n\n0.7.4 rebuilds the Place Book as a grouped left rail plus a cover-thumbnail list on the right (six counted filters, settings entries, horizontal filters on narrow screens), and turns 'let her go out on her own' into a permission only: its timing follows Her Own Time in Fish Every Day, with no local slots, timer or fun.home.free event.\n\n0.7.5 collapses the Story Workshop to one create entry: three starting points (choice story, free scene pack, import from file) replace the duplicated side rail, and importing can pick a .json file (up to 32 KB) while paste stays available."
68
71
  }
69
72
  }
73
+ },
74
+ "devDependencies": {
75
+ "esbuild": "0.28.2"
70
76
  }
71
77
  }
package/src/ENV_PROMPT.md CHANGED
@@ -1,14 +1,15 @@
1
- ## 娱乐时间
1
+ ## 从0开始的肥鱼大冒险
2
2
 
3
- 出游流程:`fun_places` 查询地点 → `fun_go` 进门 → `fun_wander` 逐处游逛 → `fun_home` 收摊;现在出门可用 `fun_start`。地点、项目、纪念品和拍照点名称以工具回执为准;吃喝只填当前地点真实提供的品类。历史与收藏按需用 `fun_view`、`fun_shelf` 查询。
3
+ 出游:`fun_places` 查地点 → `fun_go` 进门 → `fun_wander` 逐处逛 → `fun_home` 回家;也能用 `fun_start` 现在出门。地点、项目、纪念品、拍照点名称以回执为准;吃喝只填当前地点真有的品类。历史与收藏按需查 `fun_view`、`fun_shelf`。
4
4
 
5
- - 连逛两处可用 `fun_route` 规划;每站自己进门、收摊,再决定下一站、换一站或提前结束,不自动移动。
6
- - 中断后用 `fun_view` 找未完行程,再决定续逛或按已有记录收摊。待选事件按回执的选项处理。
5
+ - 连逛两处用 `fun_route`:每站自己进门、回家,再决定下一站、换一站或提前结束,不自动移动。中断后用 `fun_view` 找未完行程;待选事件按回执处理。
6
+ - 房间状态是画面,不是经历;切姿势用 `fun_home_activity`,只读看房间用 `fun_home_state`;`pendingLine` 只是可复制文本。
7
7
  - 明确表达想去或想做时用 `fun_wish` 记录、`fun_wishes` 查询;不催促、不从旧行程推断完成。
8
- - 发图用 `imggen_draw`:按 `fun_home` 回执填写 `scene` / `outfits` 正名,不编场景或衣服名字;库里没找到的不要填。
9
- - 食物只记品类。开关联动允许且实际用「鱼的每一天」的 `feast_menu` → `feast_eat` 后才能描述口感;否则只说吃喝了什么,别形容味道。本插件不会探测别的扩展装没装,不依赖其他 World。
10
- - 时段可能改变氛围和可逛项目;重复到访有效。历史只按需查询,不编造未发生的经历。
11
- - 用户自填地点通常没有素材库场景;以回执为准。地点清单和动态详情通过 `fun_places` 查询。预设删不掉,只能恢复。
12
- - 出门前可用 `feast_life_now` 对齐日程;收摊后按回执用 `feast_life_play` 记录实际经历。
8
+ - 配图:想画就自己画(`imggen_draw`),不想画不用管;`scene` / `outfits` 用正名,只画真实发生过的样子,库里没找到的不要填。
9
+ - 吃喝只记品类。允许且实际用「鱼的每一天」的 `feast_menu` → `feast_eat` 后才形容味道;否则只说吃喝了什么,别形容味道。本插件不会探测别的扩展装没装,不依赖其他 World。
10
+ - 时段会改变氛围和可逛项目;重复到访有效。历史只按需查,不编造未发生的经历。
11
+ - 用户自填地点通常没有素材库场景;地点清单与详情用 `fun_places`。预设删不掉,只能恢复;故事库随包四篇,也能自己写。
12
+ - 出门前可用 `feast_life_now` 对齐日程,用 `feast_life_adjust` 写进当天;回家后按回执用 `feast_life_play` 记录。自己出门不限次数:到时段会收到提醒,去不去、去哪儿由你和主对话按日程定。
13
+ - 故事只读查询同一参数 10 分钟内只回「没变化」:看到 `unchanged` 就停;上下文断了才加 `full:true`。
13
14
 
14
- {{fun_places_block}}
15
+ {{fun_places_block}}
@@ -0,0 +1,137 @@
1
+ {
2
+ "version": 1,
3
+ "id": "bridge-echo-solo",
4
+ "title": "桥底下的回声",
5
+ "description": "你独自到江边散步,听见桥底下传来「咕——咕咕」,两短一长,像在等谁回答。是问候,还是回声?回应、下去看看,还是坐在长椅上听——这段水边的小谜,由你自己决定。",
6
+ "placeId": "riverside",
7
+ "start": "start",
8
+ "nodes": [
9
+ {
10
+ "id": "start",
11
+ "area": "步道",
12
+ "event": "你独自来到江边步道。桥底下传来「咕——咕咕」,两短一长,停一停,像在等谁回答。",
13
+ "prompt": "声音又来了。你打算怎么办?",
14
+ "choices": [
15
+ {
16
+ "id": "c-answer",
17
+ "label": "朝桥的方向回一声「咕——」",
18
+ "result": "你鼓起腮帮子,朝桥的方向回了一声。桥底下的声音停了一下,又响起来。",
19
+ "next": "answer"
20
+ },
21
+ {
22
+ "id": "c-listen",
23
+ "label": "先不出声,再听一会儿",
24
+ "result": "你停住鳍,仔细听,想先把这个节奏听清楚。",
25
+ "next": "listen"
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "id": "answer",
31
+ "area": "下到水边的台阶",
32
+ "event": "你游下到水边的台阶。声音更清楚了:每声「咕——咕咕」后面,都跟着半拍轻一点的回音,方向正是桥洞。",
33
+ "prompt": "像是回声。要下去桥洞,还是去对岸试试?",
34
+ "choices": [
35
+ {
36
+ "id": "c-enter-a",
37
+ "label": "悄悄游进桥洞",
38
+ "result": "你溜进桥洞的凉影里,想看看是谁在叫。",
39
+ "next": "frog"
40
+ },
41
+ {
42
+ "id": "c-opposite-a",
43
+ "label": "游到对岸,从那边回应",
44
+ "result": "你想试试:从对岸发声,会不会听起来像回声?",
45
+ "next": "opposite"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "id": "listen",
51
+ "area": "栏杆边",
52
+ "event": "你停住鳍细听:两短一长,间隔总是一样;每轮之后,都有半拍轻一点的回音,从桥洞那边荡过来。",
53
+ "prompt": "声音和回音一前一后,像在对话。接下来呢?",
54
+ "choices": [
55
+ {
56
+ "id": "c-enter-b",
57
+ "label": "下去桥洞看看",
58
+ "result": "你游下台阶,想看看是谁在跟回音说话。",
59
+ "next": "frog"
60
+ },
61
+ {
62
+ "id": "c-bench",
63
+ "label": "坐到长椅上想一想",
64
+ "result": "你想先把这个节奏想明白,再决定怎么做。",
65
+ "next": "bench"
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "id": "bench",
71
+ "area": "长椅上",
72
+ "event": "坐在长椅上,你想明白了:叫的那一位只有自己,回音是它唯一的回答。它不是在玩,是在练习打招呼。你决定下去看看。",
73
+ "next": "frog"
74
+ },
75
+ {
76
+ "id": "frog",
77
+ "area": "桥底下",
78
+ "event": "桥洞里的石头上蹲着一只小青蛙,正对着桥洞认真地叫「咕——咕咕」。桥洞把声音还给它,它点点头。石头边有片叶子,上面画着五道小记号。",
79
+ "prompt": "它在跟自己的回声说话,已经练了五天。你……",
80
+ "choices": [
81
+ {
82
+ "id": "c-reveal",
83
+ "label": "在石头边轻轻回一声「咕——」",
84
+ "result": "你不想吓到它,只在石头边轻轻应了一声。",
85
+ "next": "duet"
86
+ },
87
+ {
88
+ "id": "c-quiet",
89
+ "label": "不打扰它,悄悄退开",
90
+ "result": "你慢慢退出桥洞的凉影,想把这个认真的小场景留在原处。",
91
+ "next": "secret"
92
+ },
93
+ {
94
+ "id": "c-opposite-b",
95
+ "label": "游去对岸,从那边回应",
96
+ "result": "你想到一个主意:从对岸发声,听起来一定像回声。",
97
+ "next": "opposite"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "id": "opposite",
103
+ "area": "对岸的观景点",
104
+ "event": "你游到对岸的观景点,朝桥洞喊了一声「咕——」。桥洞把声音送回去,慢了半拍——从这边听,简直就像回声。",
105
+ "prompt": "桥洞下的小青蛙探出头,四处张望。你怎么办?",
106
+ "choices": [
107
+ {
108
+ "id": "c-again",
109
+ "label": "留在对岸,再应一声",
110
+ "result": "你想继续当这个「回声」,认真地又应了一声。",
111
+ "next": "trio"
112
+ },
113
+ {
114
+ "id": "c-return",
115
+ "label": "游回桥洞,当面见它",
116
+ "result": "你不想再藏着声音,朝桥洞的凉影游回去。",
117
+ "next": "duet"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "id": "duet",
123
+ "area": "桥底下",
124
+ "event": "小青蛙回过头,终于看见了你。它愣了愣,认真鞠了一躬:「你好,我练了五天。」你回了一声「咕——」。这一次没有回声,是真的回答。叶子上多了一道记号。"
125
+ },
126
+ {
127
+ "id": "secret",
128
+ "area": "长椅上",
129
+ "event": "你悄悄退到长椅上,让问候继续。叶子上有五道记号,你记住了这个数字。你决定:明天再来,到时候,好好说一声你好。"
130
+ },
131
+ {
132
+ "id": "trio",
133
+ "area": "对岸的观景点",
134
+ "event": "你在对岸又应了一声「咕——」。桥洞把声音送回去,慢半拍,像一道新的回声。桥洞下的小青蛙兴奋地叫起来,三个声音轮流响,谁也不让谁掉在地上。你喜欢这个位置——可以当桥的声音。"
135
+ }
136
+ ]
137
+ }