feat: add scene thumbnails to TreeFlow nodes with auto-generated demo thumbs
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
"assetBase": "demo/",
|
||||
"locales": {
|
||||
"path": "locales/",
|
||||
"languages": ["zh", "en", "ja"]
|
||||
"languages": [
|
||||
"zh",
|
||||
"en",
|
||||
"ja"
|
||||
]
|
||||
},
|
||||
"startScene": "intro",
|
||||
"variables": {
|
||||
@@ -21,7 +25,11 @@
|
||||
"descKey": "achievement.qte_master.desc",
|
||||
"icon": "",
|
||||
"hidden": false,
|
||||
"condition": { "variable": "qte_succeeded", "op": ">=", "value": 1 }
|
||||
"condition": {
|
||||
"variable": "qte_succeeded",
|
||||
"op": ">=",
|
||||
"value": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "explorer",
|
||||
@@ -31,7 +39,11 @@
|
||||
"descKey": "achievement.explorer.desc",
|
||||
"icon": "",
|
||||
"hidden": false,
|
||||
"condition": { "variable": "investigation", "op": ">=", "value": 2 }
|
||||
"condition": {
|
||||
"variable": "investigation",
|
||||
"op": ">=",
|
||||
"value": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "game_finished",
|
||||
@@ -41,13 +53,38 @@
|
||||
"descKey": "achievement.game_finished.desc",
|
||||
"icon": "",
|
||||
"hidden": false,
|
||||
"condition": { "variable": "completed_game", "op": ">=", "value": 1 }
|
||||
"condition": {
|
||||
"variable": "completed_game",
|
||||
"op": ">=",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"endings": [
|
||||
{ "id": "trust_end", "label": "信任的伙伴", "labelKey": "ending.trust_end", "sceneId": "trust_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_trust.jpg" },
|
||||
{ "id": "alone_end", "label": "独行之路", "labelKey": "ending.alone_end", "sceneId": "alone_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_alone.jpg" },
|
||||
{ "id": "continue_end", "label": "继续前行", "labelKey": "ending.continue_end", "sceneId": "continue_ending", "chapterId": "ch3", "thumbnail": "ui/images/end_continue.jpg" }
|
||||
{
|
||||
"id": "trust_end",
|
||||
"label": "信任的伙伴",
|
||||
"labelKey": "ending.trust_end",
|
||||
"sceneId": "trust_ending",
|
||||
"chapterId": "ch1",
|
||||
"thumbnail": "ui/images/end_trust.jpg"
|
||||
},
|
||||
{
|
||||
"id": "alone_end",
|
||||
"label": "独行之路",
|
||||
"labelKey": "ending.alone_end",
|
||||
"sceneId": "alone_ending",
|
||||
"chapterId": "ch1",
|
||||
"thumbnail": "ui/images/end_alone.jpg"
|
||||
},
|
||||
{
|
||||
"id": "continue_end",
|
||||
"label": "继续前行",
|
||||
"labelKey": "ending.continue_end",
|
||||
"sceneId": "continue_ending",
|
||||
"chapterId": "ch3",
|
||||
"thumbnail": "ui/images/end_continue.jpg"
|
||||
}
|
||||
],
|
||||
"chapters": [
|
||||
{
|
||||
@@ -56,7 +93,11 @@
|
||||
"labelKey": "chapter.ch1",
|
||||
"startScene": "intro",
|
||||
"thumbnail": "ui/images/ch1.jpg",
|
||||
"defaultVariables": { "trust": 50, "courage": 0, "investigation": 0 }
|
||||
"defaultVariables": {
|
||||
"trust": 50,
|
||||
"courage": 0,
|
||||
"investigation": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ch2",
|
||||
@@ -64,7 +105,11 @@
|
||||
"labelKey": "chapter.ch2",
|
||||
"startScene": "desk_detail",
|
||||
"thumbnail": "ui/images/ch2.jpg",
|
||||
"defaultVariables": { "trust": 60, "courage": 10, "investigation": 1 }
|
||||
"defaultVariables": {
|
||||
"trust": 60,
|
||||
"courage": 10,
|
||||
"investigation": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ch3",
|
||||
@@ -72,7 +117,11 @@
|
||||
"labelKey": "chapter.ch3",
|
||||
"startScene": "qte_success",
|
||||
"thumbnail": "ui/images/ch3.jpg",
|
||||
"defaultVariables": { "trust": 70, "courage": 20, "investigation": 2 }
|
||||
"defaultVariables": {
|
||||
"trust": 70,
|
||||
"courage": 20,
|
||||
"investigation": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"scenes": {
|
||||
@@ -95,7 +144,11 @@
|
||||
"textKey": "intro.choice.left_door",
|
||||
"targetScene": "left_door",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": 10 }
|
||||
{
|
||||
"type": "add",
|
||||
"target": "courage",
|
||||
"value": 10
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -103,7 +156,11 @@
|
||||
"textKey": "intro.choice.right_door",
|
||||
"targetScene": "right_door",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": -5 }
|
||||
{
|
||||
"type": "add",
|
||||
"target": "courage",
|
||||
"value": -5
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -116,14 +173,18 @@
|
||||
"textKey": "intro.choice.stay",
|
||||
"targetScene": "stay"
|
||||
}
|
||||
]
|
||||
],
|
||||
"thumbnail": "intro/thumb.jpg"
|
||||
},
|
||||
"investigation_site": {
|
||||
"id": "investigation_site",
|
||||
"type": "image",
|
||||
"videoUrl": "",
|
||||
"imageUrl": "investigation_site/investigation_scene.jpg",
|
||||
"contentSize": { "w": 1280, "h": 720 },
|
||||
"contentSize": {
|
||||
"w": 1280,
|
||||
"h": 720
|
||||
},
|
||||
"subtitleUrl": "investigation_site/investigation.vtt",
|
||||
"subtitles": {
|
||||
"zh": "investigation_site/investigation.vtt",
|
||||
@@ -136,10 +197,20 @@
|
||||
"label": "查看书桌",
|
||||
"labelKey": "investigation_site.hotspot.desk",
|
||||
"targetScene": "desk_detail",
|
||||
"x": 154, "y": 144, "width": 230, "height": 101,
|
||||
"x": 154,
|
||||
"y": 144,
|
||||
"width": 230,
|
||||
"height": 101,
|
||||
"effects": [
|
||||
{ "type": "add", "target": "investigation", "value": 1 },
|
||||
{ "type": "toggleFlag", "target": "checked_desk" }
|
||||
{
|
||||
"type": "add",
|
||||
"target": "investigation",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"type": "toggleFlag",
|
||||
"target": "checked_desk"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -147,56 +218,86 @@
|
||||
"label": "查看窗户",
|
||||
"labelKey": "investigation_site.hotspot.window",
|
||||
"targetScene": "corridor",
|
||||
"x": 602, "y": 43, "width": 192, "height": 202
|
||||
"x": 602,
|
||||
"y": 43,
|
||||
"width": 192,
|
||||
"height": 202
|
||||
},
|
||||
{
|
||||
"id": "hs_closet",
|
||||
"label": "检查衣柜",
|
||||
"labelKey": "investigation_site.hotspot.closet",
|
||||
"targetScene": "desk_detail",
|
||||
"x": 422, "y": 346, "width": 128, "height": 187,
|
||||
"x": 422,
|
||||
"y": 346,
|
||||
"width": 128,
|
||||
"height": 187,
|
||||
"conditions": [
|
||||
{ "variable": "investigation", "op": ">=", "value": 1 }
|
||||
{
|
||||
"variable": "investigation",
|
||||
"op": ">=",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
{ "type": "add", "target": "investigation", "value": 1 }
|
||||
{
|
||||
"type": "add",
|
||||
"target": "investigation",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"choices": [
|
||||
]
|
||||
"choices": []
|
||||
},
|
||||
"corridor": {
|
||||
"id": "corridor",
|
||||
"videoUrl": "corridor/corridor.mp4",
|
||||
"contentSize": { "w": 1280, "h": 720 },
|
||||
"contentSize": {
|
||||
"w": 1280,
|
||||
"h": 720
|
||||
},
|
||||
"skippable": false,
|
||||
"hotspots": [
|
||||
{
|
||||
"id": "hs_left",
|
||||
"label": "走向左边通道",
|
||||
"targetScene": "left_door",
|
||||
"x": 26, "y": 216, "width": 384, "height": 324,
|
||||
"x": 26,
|
||||
"y": 216,
|
||||
"width": 384,
|
||||
"height": 324,
|
||||
"showAt": 1.5,
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": 5 }
|
||||
{
|
||||
"type": "add",
|
||||
"target": "courage",
|
||||
"value": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "hs_center",
|
||||
"label": "走向中间通道",
|
||||
"targetScene": "trust_ending",
|
||||
"x": 422, "y": 180, "width": 435, "height": 396,
|
||||
"x": 422,
|
||||
"y": 180,
|
||||
"width": 435,
|
||||
"height": 396,
|
||||
"showAt": 3.0
|
||||
},
|
||||
{
|
||||
"id": "hs_right",
|
||||
"label": "走向右边通道",
|
||||
"targetScene": "alone_ending",
|
||||
"x": 870, "y": 216, "width": 384, "height": 324,
|
||||
"x": 870,
|
||||
"y": 216,
|
||||
"width": 384,
|
||||
"height": 324,
|
||||
"showAt": 5.0
|
||||
}
|
||||
]
|
||||
],
|
||||
"thumbnail": "corridor/thumb.jpg"
|
||||
},
|
||||
"left_door": {
|
||||
"id": "left_door",
|
||||
@@ -215,7 +316,11 @@
|
||||
"promptKey": "left_door.prompt.handshake",
|
||||
"targetScene": "trust_ending",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "trust", "value": 30 }
|
||||
{
|
||||
"type": "add",
|
||||
"target": "trust",
|
||||
"value": 30
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -223,7 +328,8 @@
|
||||
"textKey": "left_door.choice.reject",
|
||||
"targetScene": "alone_ending"
|
||||
}
|
||||
]
|
||||
],
|
||||
"thumbnail": "left_door/thumb.jpg"
|
||||
},
|
||||
"right_door": {
|
||||
"id": "right_door",
|
||||
@@ -237,18 +343,38 @@
|
||||
"triggerTime": 1.0,
|
||||
"prompt": "躲避飞来的石块!",
|
||||
"promptKey": "right_door.qte.dodge",
|
||||
"keys": ["ArrowLeft", "ArrowRight", "a", "d"],
|
||||
"keys": [
|
||||
"ArrowLeft",
|
||||
"ArrowRight",
|
||||
"a",
|
||||
"d"
|
||||
],
|
||||
"timeLimit": 3.0,
|
||||
"successScene": "qte_success",
|
||||
"failScene": "qte_fail",
|
||||
"effects": {
|
||||
"success": [
|
||||
{ "type": "add", "target": "courage", "value": 15 },
|
||||
{ "type": "set", "target": "qte_succeeded", "value": 1 }
|
||||
{
|
||||
"type": "add",
|
||||
"target": "courage",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"type": "set",
|
||||
"target": "qte_succeeded",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"fail": [{ "type": "add", "target": "trust", "value": -20 }]
|
||||
"fail": [
|
||||
{
|
||||
"type": "add",
|
||||
"target": "trust",
|
||||
"value": -20
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"thumbnail": "right_door/thumb.jpg"
|
||||
},
|
||||
"qte_success": {
|
||||
"id": "qte_success",
|
||||
@@ -264,7 +390,8 @@
|
||||
"textKey": "qte_success.choice.back",
|
||||
"targetScene": "intro"
|
||||
}
|
||||
]
|
||||
],
|
||||
"thumbnail": "qte_success/thumb.jpg"
|
||||
},
|
||||
"qte_fail": {
|
||||
"id": "qte_fail",
|
||||
@@ -280,7 +407,8 @@
|
||||
"textKey": "qte_fail.choice.back",
|
||||
"targetScene": "intro"
|
||||
}
|
||||
]
|
||||
],
|
||||
"thumbnail": "qte_fail/thumb.jpg"
|
||||
},
|
||||
"desk_detail": {
|
||||
"id": "desk_detail",
|
||||
@@ -296,7 +424,8 @@
|
||||
"textKey": "desk_detail.choice.leave",
|
||||
"targetScene": "corridor"
|
||||
}
|
||||
]
|
||||
],
|
||||
"thumbnail": "shared/thumb.jpg"
|
||||
},
|
||||
"stay": {
|
||||
"id": "stay",
|
||||
@@ -313,8 +442,13 @@
|
||||
"loopStart": 3.0,
|
||||
"loopEnd": 6.0,
|
||||
"choices": [
|
||||
{ "text": "站起来离开", "textKey": "stay.choice.stand", "targetScene": "alone_ending" }
|
||||
]
|
||||
{
|
||||
"text": "站起来离开",
|
||||
"textKey": "stay.choice.stand",
|
||||
"targetScene": "alone_ending"
|
||||
}
|
||||
],
|
||||
"thumbnail": "stay/thumb.jpg"
|
||||
},
|
||||
"trust_ending": {
|
||||
"id": "trust_ending",
|
||||
@@ -327,7 +461,11 @@
|
||||
"promptKey": "trust_ending.prompt.journey",
|
||||
"targetScene": "secret_ending",
|
||||
"conditions": [
|
||||
{ "variable": "trust", "op": ">=", "value": 80 }
|
||||
{
|
||||
"variable": "trust",
|
||||
"op": ">=",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -335,25 +473,33 @@
|
||||
"textKey": "trust_ending.choice.leave",
|
||||
"targetScene": "alone_ending"
|
||||
}
|
||||
]
|
||||
],
|
||||
"thumbnail": "trust_ending/thumb.jpg"
|
||||
},
|
||||
"secret_ending": {
|
||||
"id": "secret_ending",
|
||||
"videoUrl": "shared/continue_ending.mp4",
|
||||
"choices": []
|
||||
"choices": [],
|
||||
"thumbnail": "shared/thumb.jpg"
|
||||
},
|
||||
"alone_ending": {
|
||||
"id": "alone_ending",
|
||||
"videoUrl": "alone_ending/alone_ending.mp4",
|
||||
"choices": [],
|
||||
"onEnter": [
|
||||
{ "type": "set", "target": "completed_game", "value": 1 }
|
||||
]
|
||||
{
|
||||
"type": "set",
|
||||
"target": "completed_game",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"thumbnail": "alone_ending/thumb.jpg"
|
||||
},
|
||||
"continue_ending": {
|
||||
"id": "continue_ending",
|
||||
"videoUrl": "shared/continue_ending.mp4",
|
||||
"choices": []
|
||||
"choices": [],
|
||||
"thumbnail": "shared/thumb.jpg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user