Skip to content

Commit ec23890

Browse files
committed
Add sounds
1 parent 2189289 commit ec23890

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

examples/cave/Mystery.wav

1.69 MB
Binary file not shown.

examples/cave/creak.wav

476 KB
Binary file not shown.

examples/cave/cyoa.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
{
1111
"card_id": "inn",
1212
"background_image": "page01.bmp",
13+
"sound": "pub.wav",
14+
"sound_repeat": "True",
1315
"text": "This is a peaceful, happy inn with plentiful drink, tasty food, and friendly staff.",
1416
"text_color": "0x000001",
1517
"button01_text": "Stay here",
@@ -22,6 +24,8 @@
2224
"background_image": "page01.bmp",
2325
"text": "There is a dark cave in the hillside before you.",
2426
"text_color": "0x000001",
27+
"sound": "Mystery.wav",
28+
"sound_repeat": "True",
2529
"button01_text": "Go inside",
2630
"button01_goto_card_id": "entry",
2731
"button02_text": "Run away",
@@ -30,6 +34,8 @@
3034
{
3135
"card_id": "entry",
3236
"background_image": "page01.bmp",
37+
"sound": "Mystery.wav",
38+
"sound_repeat": "True",
3339
"text": "You are in a dark, narrow tunnel.",
3440
"text_color": "0x000001",
3541
"button01_text": "Next",
@@ -38,6 +44,8 @@
3844
{
3945
"card_id": "side opening",
4046
"background_image": "page01.bmp",
47+
"sound": "Mystery.wav",
48+
"sound_repeat": "True",
4149
"text": "You are in a small room, one tunnel leads ahead and another to the side. Do you continue on or explore the side tunnel?",
4250
"text_color": "0x000001",
4351
"button01_text": "Continue",
@@ -48,6 +56,8 @@
4856
{
4957
"card_id": "treasure room",
5058
"background_image": "page01.bmp",
59+
"sound": "Mystery.wav",
60+
"sound_repeat": "True",
5161
"text": "There is a pile of treasure here. Congratulations!",
5262
"text_color": "0x000001",
5363
"button01_text": "Next",
@@ -56,6 +66,8 @@
5666
{
5767
"card_id": "skeleton room",
5868
"background_image": "page01.bmp",
69+
"sound": "Mystery.wav",
70+
"sound_repeat": "True",
5971
"text": "There is a skeleton on the floor. From the items around it, it seems to be that of an unfortunate adventurer.",
6072
"text_color": "0x000001",
6173
"button01_text": "Next",
@@ -64,6 +76,8 @@
6476
{
6577
"card_id": "maze 1",
6678
"background_image": "page01.bmp",
79+
"sound": "Mystery.wav",
80+
"sound_repeat": "True",
6781
"text": "There are passages to the left and right.",
6882
"text_color": "0x000001",
6983
"button01_text": "Left",
@@ -74,6 +88,8 @@
7488
{
7589
"card_id": "maze 2",
7690
"background_image": "page01.bmp",
91+
"sound": "Mystery.wav",
92+
"sound_repeat": "True",
7793
"text": "There are passages to the left and right.",
7894
"text_color": "0x000001",
7995
"button01_text": "Left",
@@ -84,6 +100,8 @@
84100
{
85101
"card_id": "maze 3",
86102
"background_image": "page01.bmp",
103+
"sound": "Mystery.wav",
104+
"sound_repeat": "True",
87105
"text": "There are passages to the left and right.",
88106
"text_color": "0x000001",
89107
"button01_text": "Left",
@@ -94,6 +112,8 @@
94112
{
95113
"card_id": "maze 4",
96114
"background_image": "page01.bmp",
115+
"sound": "Mystery.wav",
116+
"sound_repeat": "True",
97117
"text": "There are passages to the left and right.",
98118
"text_color": "0x000001",
99119
"button01_text": "Left",
@@ -104,6 +124,8 @@
104124
{
105125
"card_id": "maze 5",
106126
"background_image": "page01.bmp",
127+
"sound": "Mystery.wav",
128+
"sound_repeat": "True",
107129
"text": "There are passages to the left and right.",
108130
"text_color": "0x000001",
109131
"button01_text": "Left",
@@ -114,6 +136,8 @@
114136
{
115137
"card_id": "maze 6",
116138
"background_image": "page01.bmp",
139+
"sound": "Mystery.wav",
140+
"sound_repeat": "True",
117141
"text": "There are passages to the left and right.",
118142
"text_color": "0x000001",
119143
"button01_text": "Left",
@@ -124,6 +148,8 @@
124148
{
125149
"card_id": "creaking",
126150
"background_image": "page01.bmp",
151+
"sound": "creak.wav",
152+
"sound_repeat": "True",
127153
"text": "You hear an ominuous creaking from around the corner",
128154
"text_color": "0x000001",
129155
"button01_text": "Continue",
@@ -134,6 +160,8 @@
134160
{
135161
"card_id": "bridge room",
136162
"background_image": "page01.bmp",
163+
"sound": "creak.wav",
164+
"sound_repeat": "True",
137165
"text": "There is a creaking, rickity wooded bridge leading across a gaping chasm. At the other end is a large treasure chest. There is also a short tunnel with daylight at the end.",
138166
"text_color": "0x000001",
139167
"button01_text": "Treasure!",
@@ -144,6 +172,7 @@
144172
{
145173
"card_id": "die",
146174
"background_image": "page01.bmp",
175+
"sound": "scream.wav",
147176
"text": "The bridge gives way and you fall to a painful death.",
148177
"text_color": "0x000001",
149178
"button01_text": "Next",

examples/cave/pub.wav

812 KB
Binary file not shown.

examples/cave/scream.wav

152 KB
Binary file not shown.

0 commit comments

Comments
 (0)