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