refactor: set assetBase to demo/ and strip redundant demo/ prefix from all paths

This commit is contained in:
2026-06-10 11:32:14 +08:00
parent 9409c893b3
commit b38969b108

View File

@@ -1,5 +1,5 @@
{ {
"assetBase": "", "assetBase": "demo/",
"startScene": "intro", "startScene": "intro",
"variables": { "variables": {
"trust": 50, "trust": 50,
@@ -33,43 +33,43 @@
} }
], ],
"endings": [ "endings": [
{ "id": "trust_end", "label": "信任的伙伴", "sceneId": "trust_ending", "chapterId": "ch1", "thumbnail": "demo/ui/images/end_trust.jpg" }, { "id": "trust_end", "label": "信任的伙伴", "sceneId": "trust_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_trust.jpg" },
{ "id": "alone_end", "label": "独行之路", "sceneId": "alone_ending", "chapterId": "ch1", "thumbnail": "demo/ui/images/end_alone.jpg" }, { "id": "alone_end", "label": "独行之路", "sceneId": "alone_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_alone.jpg" },
{ "id": "continue_end", "label": "继续前行", "sceneId": "continue_ending", "chapterId": "ch3", "thumbnail": "demo/ui/images/end_continue.jpg" } { "id": "continue_end", "label": "继续前行", "sceneId": "continue_ending", "chapterId": "ch3", "thumbnail": "ui/images/end_continue.jpg" }
], ],
"chapters": [ "chapters": [
{ {
"id": "ch1", "id": "ch1",
"label": "第一章:醒来", "label": "第一章:醒来",
"startScene": "intro", "startScene": "intro",
"thumbnail": "demo/ui/images/ch1.jpg", "thumbnail": "ui/images/ch1.jpg",
"defaultVariables": { "trust": 50, "courage": 0, "investigation": 0 } "defaultVariables": { "trust": 50, "courage": 0, "investigation": 0 }
}, },
{ {
"id": "ch2", "id": "ch2",
"label": "第二章:调查", "label": "第二章:调查",
"startScene": "desk_detail", "startScene": "desk_detail",
"thumbnail": "demo/ui/images/ch2.jpg", "thumbnail": "ui/images/ch2.jpg",
"defaultVariables": { "trust": 60, "courage": 10, "investigation": 1 } "defaultVariables": { "trust": 60, "courage": 10, "investigation": 1 }
}, },
{ {
"id": "ch3", "id": "ch3",
"label": "第三章:终局", "label": "第三章:终局",
"startScene": "qte_success", "startScene": "qte_success",
"thumbnail": "demo/ui/images/ch3.jpg", "thumbnail": "ui/images/ch3.jpg",
"defaultVariables": { "trust": 70, "courage": 20, "investigation": 2 } "defaultVariables": { "trust": 70, "courage": 20, "investigation": 2 }
} }
], ],
"scenes": { "scenes": {
"intro": { "intro": {
"id": "intro", "id": "intro",
"videoUrl": "demo/intro/intro.mp4", "videoUrl": "intro/intro.mp4",
"subtitleUrl": "demo/intro/intro.vtt", "subtitleUrl": "intro/intro.vtt",
"subtitles": { "subtitles": {
"zh": "demo/intro/intro.vtt", "zh": "intro/intro.vtt",
"en": "demo/intro/intro_en.vtt" "en": "intro/intro_en.vtt"
}, },
"bgmUrl": "demo/shared/calm_bgm.mp3", "bgmUrl": "shared/calm_bgm.mp3",
"bgmVolume": 0.6, "bgmVolume": 0.6,
"bgmCrossFade": 1.5, "bgmCrossFade": 1.5,
"videoMuted": true, "videoMuted": true,
@@ -106,8 +106,8 @@
"id": "investigation_site", "id": "investigation_site",
"type": "image", "type": "image",
"videoUrl": "", "videoUrl": "",
"imageUrl": "demo/investigation_site/investigation_scene.jpg", "imageUrl": "investigation_site/investigation_scene.jpg",
"subtitleUrl": "demo/investigation_site/investigation.vtt", "subtitleUrl": "investigation_site/investigation.vtt",
"hotspots": [ "hotspots": [
{ {
"id": "hs_desk", "id": "hs_desk",
@@ -143,7 +143,7 @@
}, },
"corridor": { "corridor": {
"id": "corridor", "id": "corridor",
"videoUrl": "demo/corridor/corridor.mp4", "videoUrl": "corridor/corridor.mp4",
"hotspots": [ "hotspots": [
{ {
"id": "hs_left", "id": "hs_left",
@@ -173,8 +173,8 @@
}, },
"left_door": { "left_door": {
"id": "left_door", "id": "left_door",
"videoUrl": "demo/left_door/left_door.mp4", "videoUrl": "left_door/left_door.mp4",
"subtitleUrl": "demo/left_door/left_door.vtt", "subtitleUrl": "left_door/left_door.vtt",
"choices": [ "choices": [
{ {
"text": "与陌生人握手", "text": "与陌生人握手",
@@ -193,9 +193,9 @@
}, },
"right_door": { "right_door": {
"id": "right_door", "id": "right_door",
"videoUrl": "demo/right_door/right_door.mp4", "videoUrl": "right_door/right_door.mp4",
"skippable": false, "skippable": false,
"bgmUrl": "demo/right_door/tense_bgm.mp3", "bgmUrl": "right_door/tense_bgm.mp3",
"bgmVolume": 0.7, "bgmVolume": 0.7,
"bgmCrossFade": 2.0, "bgmCrossFade": 2.0,
"videoMuted": true, "videoMuted": true,
@@ -217,7 +217,7 @@
}, },
"qte_success": { "qte_success": {
"id": "qte_success", "id": "qte_success",
"videoUrl": "demo/qte_success/qte_success.mp4", "videoUrl": "qte_success/qte_success.mp4",
"choices": [ "choices": [
{ {
"text": "继续前进", "text": "继续前进",
@@ -231,7 +231,7 @@
}, },
"qte_fail": { "qte_fail": {
"id": "qte_fail", "id": "qte_fail",
"videoUrl": "demo/qte_fail/qte_fail.mp4", "videoUrl": "qte_fail/qte_fail.mp4",
"choices": [ "choices": [
{ {
"text": "继续前进", "text": "继续前进",
@@ -245,7 +245,7 @@
}, },
"desk_detail": { "desk_detail": {
"id": "desk_detail", "id": "desk_detail",
"videoUrl": "demo/shared/continue_ending.mp4", "videoUrl": "shared/continue_ending.mp4",
"choices": [ "choices": [
{ {
"text": "返回调查现场", "text": "返回调查现场",
@@ -259,9 +259,9 @@
}, },
"stay": { "stay": {
"id": "stay", "id": "stay",
"videoUrl": "demo/stay/stay_loop.mp4", "videoUrl": "stay/stay_loop.mp4",
"subtitleUrl": "demo/stay/stay.vtt", "subtitleUrl": "stay/stay.vtt",
"bgmUrl": "demo/shared/calm_bgm.mp3", "bgmUrl": "shared/calm_bgm.mp3",
"bgmVolume": 0.6, "bgmVolume": 0.6,
"videoMuted": true, "videoMuted": true,
"loopStart": 3.0, "loopStart": 3.0,
@@ -272,7 +272,7 @@
}, },
"trust_ending": { "trust_ending": {
"id": "trust_ending", "id": "trust_ending",
"videoUrl": "demo/trust_ending/trust_ending.mp4", "videoUrl": "trust_ending/trust_ending.mp4",
"choices": [ "choices": [
{ {
"text": "开启信任的旅程(需要 trust >= 80", "text": "开启信任的旅程(需要 trust >= 80",
@@ -291,12 +291,12 @@
}, },
"secret_ending": { "secret_ending": {
"id": "secret_ending", "id": "secret_ending",
"videoUrl": "demo/shared/continue_ending.mp4", "videoUrl": "shared/continue_ending.mp4",
"choices": [] "choices": []
}, },
"alone_ending": { "alone_ending": {
"id": "alone_ending", "id": "alone_ending",
"videoUrl": "demo/alone_ending/alone_ending.mp4", "videoUrl": "alone_ending/alone_ending.mp4",
"choices": [], "choices": [],
"onEnter": [ "onEnter": [
{ "type": "set", "target": "completed_game", "value": 1 } { "type": "set", "target": "completed_game", "value": 1 }
@@ -304,7 +304,7 @@
}, },
"continue_ending": { "continue_ending": {
"id": "continue_ending", "id": "continue_ending",
"videoUrl": "demo/shared/continue_ending.mp4", "videoUrl": "shared/continue_ending.mp4",
"choices": [] "choices": []
} }
} }