Convert app into node version with express.
This commit is contained in:
43
src/back/nodes.json
Normal file
43
src/back/nodes.json
Normal file
@@ -0,0 +1,43 @@
|
||||
[
|
||||
{
|
||||
"id": "node-1",
|
||||
"text": "Node 1",
|
||||
"choices": [
|
||||
{
|
||||
"id": "choice-1",
|
||||
"text": "Choice 1",
|
||||
"nextNode": "node-2"
|
||||
},
|
||||
{
|
||||
"id": "choice-2",
|
||||
"text": "Choice 2",
|
||||
"nextNode": "node-exit"
|
||||
},
|
||||
{
|
||||
"id": "choice-3",
|
||||
"text": "Choice 3",
|
||||
"nextNode": "node-exit"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-2",
|
||||
"text": "Node 2",
|
||||
"choices": [
|
||||
{
|
||||
"id": "choice-3",
|
||||
"text": "Choice 3",
|
||||
"nextNode": "node-exit"
|
||||
},
|
||||
{
|
||||
"id": "choice-4",
|
||||
"text": "Choice 4",
|
||||
"nextNode": "node-exit"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-exit",
|
||||
"text": "Game over!"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user