init
This commit is contained in:
84
public/scenes/demo.json
Normal file
84
public/scenes/demo.json
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"startScene": "intro",
|
||||
"variables": {
|
||||
"trust": 50,
|
||||
"courage": 0
|
||||
},
|
||||
"scenes": {
|
||||
"intro": {
|
||||
"id": "intro",
|
||||
"videoUrl": "/videos/intro.mp4",
|
||||
"choices": [
|
||||
{
|
||||
"text": "走向左边那扇发光的门",
|
||||
"targetScene": "left_door",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": 10 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "走向右边那扇普通的门",
|
||||
"targetScene": "right_door",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "courage", "value": -5 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "留在原地,什么也不做",
|
||||
"targetScene": "stay"
|
||||
}
|
||||
]
|
||||
},
|
||||
"left_door": {
|
||||
"id": "left_door",
|
||||
"videoUrl": "/videos/left_door.mp4",
|
||||
"choices": [
|
||||
{
|
||||
"text": "与陌生人握手",
|
||||
"targetScene": "trust_ending",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "trust", "value": 30 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "拒绝握手,保持警惕",
|
||||
"targetScene": "alone_ending"
|
||||
}
|
||||
]
|
||||
},
|
||||
"right_door": {
|
||||
"id": "right_door",
|
||||
"videoUrl": "/videos/right_door.mp4",
|
||||
"choices": [
|
||||
{
|
||||
"text": "继续前进",
|
||||
"targetScene": "continue_ending"
|
||||
},
|
||||
{
|
||||
"text": "回头",
|
||||
"targetScene": "intro"
|
||||
}
|
||||
]
|
||||
},
|
||||
"stay": {
|
||||
"id": "stay",
|
||||
"videoUrl": "/videos/stay.mp4",
|
||||
"nextScene": "alone_ending"
|
||||
},
|
||||
"trust_ending": {
|
||||
"id": "trust_ending",
|
||||
"videoUrl": "/videos/trust_ending.mp4",
|
||||
"choices": []
|
||||
},
|
||||
"alone_ending": {
|
||||
"id": "alone_ending",
|
||||
"videoUrl": "/videos/alone_ending.mp4",
|
||||
"choices": []
|
||||
},
|
||||
"continue_ending": {
|
||||
"id": "continue_ending",
|
||||
"videoUrl": "/videos/continue_ending.mp4",
|
||||
"choices": []
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user