feat: engine improvements, new scenes, videos, subtitles, hotspot component and docs update
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
"startScene": "intro",
|
||||
"variables": {
|
||||
"trust": 50,
|
||||
"courage": 0
|
||||
"courage": 0,
|
||||
"investigation": 0
|
||||
},
|
||||
"scenes": {
|
||||
"intro": {
|
||||
@@ -24,12 +25,86 @@
|
||||
{ "type": "add", "target": "courage", "value": -5 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "仔细搜索房间",
|
||||
"targetScene": "investigation_site"
|
||||
},
|
||||
{
|
||||
"text": "留在原地,什么也不做",
|
||||
"targetScene": "stay"
|
||||
}
|
||||
]
|
||||
},
|
||||
"investigation_site": {
|
||||
"id": "investigation_site",
|
||||
"type": "image",
|
||||
"videoUrl": "",
|
||||
"imageUrl": "/images/investigation_scene.jpg",
|
||||
"subtitleUrl": "/subtitles/investigation.vtt",
|
||||
"hotspots": [
|
||||
{
|
||||
"id": "hs_desk",
|
||||
"label": "查看书桌",
|
||||
"targetScene": "desk_detail",
|
||||
"x": 0.12, "y": 0.20, "width": 0.18, "height": 0.14,
|
||||
"effects": [
|
||||
{ "type": "add", "target": "investigation", "value": 1 },
|
||||
{ "type": "toggleFlag", "target": "checked_desk" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "hs_window",
|
||||
"label": "查看窗户",
|
||||
"targetScene": "corridor",
|
||||
"x": 0.47, "y": 0.06, "width": 0.15, "height": 0.28
|
||||
},
|
||||
{
|
||||
"id": "hs_closet",
|
||||
"label": "检查衣柜",
|
||||
"targetScene": "desk_detail",
|
||||
"x": 0.33, "y": 0.48, "width": 0.10, "height": 0.26,
|
||||
"conditions": [
|
||||
{ "variable": "investigation", "op": ">=", "value": 1 }
|
||||
],
|
||||
"effects": [
|
||||
{ "type": "add", "target": "investigation", "value": 1 }
|
||||
]
|
||||
}
|
||||
],
|
||||
"choices": [
|
||||
{ "text": "离开房间", "targetScene": "corridor" }
|
||||
]
|
||||
},
|
||||
"corridor": {
|
||||
"id": "corridor",
|
||||
"videoUrl": "/videos/corridor.mp4",
|
||||
"hotspots": [
|
||||
{
|
||||
"id": "hs_left",
|
||||
"label": "走向左边通道",
|
||||
"targetScene": "left_door",
|
||||
"x": 0.02, "y": 0.30, "width": 0.30, "height": 0.45,
|
||||
"showAt": 1.5,
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": 5 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "hs_center",
|
||||
"label": "走向中间通道",
|
||||
"targetScene": "trust_ending",
|
||||
"x": 0.33, "y": 0.25, "width": 0.34, "height": 0.55,
|
||||
"showAt": 3.0
|
||||
},
|
||||
{
|
||||
"id": "hs_right",
|
||||
"label": "走向右边通道",
|
||||
"targetScene": "alone_ending",
|
||||
"x": 0.68, "y": 0.30, "width": 0.30, "height": 0.45,
|
||||
"showAt": 5.0
|
||||
}
|
||||
]
|
||||
},
|
||||
"left_door": {
|
||||
"id": "left_door",
|
||||
"videoUrl": "/videos/left_door.mp4",
|
||||
@@ -92,6 +167,20 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"desk_detail": {
|
||||
"id": "desk_detail",
|
||||
"videoUrl": "/videos/continue_ending.mp4",
|
||||
"choices": [
|
||||
{
|
||||
"text": "返回调查现场",
|
||||
"targetScene": "investigation_site"
|
||||
},
|
||||
{
|
||||
"text": "离开",
|
||||
"targetScene": "corridor"
|
||||
}
|
||||
]
|
||||
},
|
||||
"stay": {
|
||||
"id": "stay",
|
||||
"videoUrl": "/videos/stay.mp4",
|
||||
|
||||
Reference in New Issue
Block a user