-
Notifications
You must be signed in to change notification settings - Fork 0
/
game-schema.json
78 lines (78 loc) · 2.45 KB
/
game-schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://kslacky.wordpress.com/python-adventure-game-engine-schema",
"title": "Python Adventure Game Engine Schema",
"properties": {
"name": {
"type": "string",
"description": "the game name"
},
"version": {
"type": "string",
"description": "game version number"
},
"license": {
"type": "string",
"description": "game license"
},
"license_url": {
"type": "string",
"description": "the URI where to get the text license"
},
"author_name": {
"type": "string",
"description": "the author name"
},
"author_contact": {
"type": "string",
"description": "how to contact author: a website URL, an e-mail address or some chat id as author prefers"
},
"author_github": {
"type": "string",
"description": "a github URL or ID if author has it"
},
"release_date": {
"type": "string",
"description": "a game release date"
},
"update_date": {
"type": "string",
"description": "last game update date"
},
"sound_system": {
"type": "string",
"description": "it can be On/Off to enable or disable the sound system"
},
"sounds_files_directory_name": {
"type": "string",
"description": "define in which directory are the sound files"
},
"starting_sound_id": {
"type": "string",
"description": "define the ID of a sound file to play when game starts"
},
"replay_filename": {
"type": "string",
"description": "define the replay filename: it contains all the commands executed during the game"
},
"waiting_time": {
"type": "integer",
"minimum": 1,
"description": "seconds to wait before you can type a new command"
},
"show_countdown": {
"type": "boolean",
"description": "true means you're going to see: 'Just a moment: *countdown act*' before a new action can be executed"
},
"get_new_action": {
"type": "string",
"description": "define how to execute the next command when engine is ready: waiting for a countdown (countdown) or pressing the enter key (Enter Key)"
},
"starting_room": {
"type": "string",
"description": "define which is the ID of the room where the game starts"
}
},
"required": ["name", "version", "license", "license_url", "author_name", "starting_room"],
"additionalProperties": false
}