Skip to content

Commit 2997860

Browse files
committed
Rename numbered cards
1 parent e1ccd5b commit 2997860

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

examples/cyoa/cyoa.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
11
[
22
{
3-
"page_id": "startup",
3+
"card_id": "startup",
44
"background_image": "startup.bmp",
55
"sound": "startup.wav",
66
"auto_advance": "5"
77
},
88
{
9-
"page_id": "home",
9+
"card_id": "home",
1010
"background_image": "home.bmp",
1111
"sound": "home.wav",
1212
"sound_repeat": "True",
1313
"button01_text": "Help",
14-
"button01_goto_page_id": "help",
14+
"button01_goto_card_id": "help",
1515
"button02_text": "Start",
16-
"button02_goto_page_id": "1"
16+
"button02_goto_card_id": "want to build?"
1717
},
1818

1919
{
20-
"page_id": "1",
20+
"card_id": "want to build?",
2121
"background_image": "page01.bmp",
2222
"text": "You do not have any friends so you decide that it might be a good idea to build a robot friend. You're unsure if you want to do this, so now is the time to decide. Do you want to build a robot friend?",
2323
"text_color": "0x000001",
2424
"sound": "sound_01.wav",
2525
"button01_text": "Yes",
26-
"button01_goto_page_id": "2",
26+
"button01_goto_card_id": "continue?",
2727
"button02_text": "No",
28-
"button02_goto_page_id": "4"
28+
"button02_goto_card_id": "lazy"
2929
},
3030
{
31-
"page_id": "2",
31+
"card_id": "continue?",
3232
"background_image": "page02.bmp",
3333
"text": "You spend all day, then all week, then all month building a robot, everyone stops talking to you, however a lot of progress has been made. Do you want to keep making the robots?",
3434
"text_color": "0xFFFFFF",
3535
"button01_text": "Yes",
36-
"button01_goto_page_id": "3",
36+
"button01_goto_card_id": "robot friend",
3737
"button02_text": "No",
38-
"button02_goto_page_id": "4"
38+
"button02_goto_card_id": "lazy"
3939
},
4040
{
41-
"page_id": "3",
41+
"card_id": "robot friend",
4242
"background_image": "page03.bmp",
4343
"text": "The robot is now you're friend, everyone else wishes they had a robot, this is the best thing ever. Good work!",
4444
"text_color": "0xFFFFFF",
4545
"sound": "sound_03.wav",
4646
"button01_text": "Next",
47-
"button01_goto_page_id": "happy_ending"
47+
"button01_goto_card_id": "happy ending"
4848
},
4949
{
50-
"page_id": "4",
50+
"card_id": "lazy",
5151
"background_image": "page04.bmp",
5252
"sound": "sound_04.wav",
5353
"text": "Welp, not only will you not have any friends, you are lazy. What's the point of playing? Try again.",
5454
"text_color": "0xFFFFFF",
5555
"button01_text": "Start Over",
56-
"button01_goto_page_id": "home"
56+
"button01_goto_card_id": "home"
5757
},
5858
{
59-
"page_id": "help",
59+
"card_id": "help",
6060
"background_image": "help.bmp",
6161
"text": "All you need to do is click the buttons, that's it.\nThis is a new line.",
6262
"text_color": "0xFFFFFF",
6363
"button01_text": "Home",
64-
"button01_goto_page_id": "home"
64+
"button01_goto_card_id": "home"
6565
},
6666
{
67-
"page_id": "happy_ending",
67+
"card_id": "happy ending",
6868
"background_image": "happyending.bmp",
6969
"sound": "happy_ending.wav",
7070
"sound_repeat": "True",
7171
"button01_text": "Home",
72-
"button01_goto_page_id": "home"
72+
"button01_goto_card_id": "home"
7373
}
7474
]

0 commit comments

Comments
 (0)