-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample.json
127 lines (101 loc) · 4.2 KB
/
example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
config = {
"name" : "Dungeon Quest Extreme V2",
"description" : "A quest through all of space and time.",
"starting_scene" : "entrance", // the entry point of the story.
// parent folders for various config files.
"items" : "story/items/", // check "items = " below.
"stats" : "story/stats/", // check "stats = " below.
"assets" : "story/assets/", // check "assets = " below.
"scenes" : "story/scenes/", // check "scenes = " below.
// meta data about author.
"meta" : {
"author" : "Jack",
"url" : "rms.org",
"email" : "[email protected]"
}
}
items = {
"bronze_key_1" : { // item id and basic meta data.
"name" : "Bronze Key",
"description" : "A bronze key."
},
"red_key_1" : {
"name" : "Red Key",
"description" : "A red key with a firey pattern."
}
}
stats = {
"traits" : { // stats and abilities you can obtain or change depending on the choices you make.
"morality" : {
"name" : "Morality",
"description" : "Not being a dick."
},
"kindness" : {
"name" : "Kindness",
"description" : "Being not a dick."
},
"power_of_zeus" : {
"name" : "Zeus himself",
"description" : "Shoot shit with lightning."
}
},
"classes" : { // default classes.
"murderer" : {
"morality" : -100,
"kindness" : -100,
"power_of_zeus" : 3
},
"archer" : {
"morality" : 10,
"kindness" : 5,
"power_of_zeus" : 666
}
}
}
assets = {
"dungeon_ambiance" : {
"music" : "wonderwall.wav", // music to play when scene is active.
"bg" : "dungeon_wall.jpg", // background picture to show.
"sprites" : [
{
"file" : "ciaran.jpg", // the file to load.
"position" : [200, 400], // where on screen to position the sprite.
"size" : 1 // size multiplier. 1 = same as file
},
{
"file" : "god.jpg", // the file to load.
"position" : [700, 400], // where on screen to position the sprite.
"size" : 2 // size multiplier. 1 = same as file
},
]
}
}
scenes = {
"entrance" : {
"title" : "The Dungeon", // human readable name
"description" : "Welcome to hell, you swine.", // description of your surroundings, exposition.
"assets" : "dungeon_ambiance", // if assets are the same as last scene,
// dont reload anything, just reuse and continue music etc
"end" : false, // is this scene an endstate?
"gotos" : [
{
"label" : "Pick up bronze key.", // human readable form.
"scene" : "entrance", // loop back to the same room.
"stats" : { // stat alterations made by picking this option.
"morality" : 10, // add ten morality.
"kindness" : -5, // remove 5 kindness.
"power_of_zeus" : 200 // give you some ass kicking power.
},
"history" : { // variables to keep track of during gameplay.
"knows_jack" : true // the player has encountered the npc called jack previously.
},
"acquire" : { // allow the user to pick up the key.
"bronze_key_1" : 1 // pick up one key.
},
"require" : { // if the user has this item, hide this option from the list.
"bronze_key_1" : 0 // requires 0 of these items, e.g: you have to have none.
}
}
]
}
}