42 lines
1.4 kB
1# Game configuration: JSON, plus comment lines starting with '#' or '//'.
2# Every key is optional. A missing or invalid value falls back to its
3# default, a number out of range is clamped, and a warning is printed.
4# Unknown keys are ignored. The README "Configuration" section lists them all.
5{
6 # File where the top 10 highscores are saved.
7 "highscore_filename": "highscores.json",
8
9 # Lives at the start of a game (1 to 10).
10 "lives": 3,
11
12 # Pacgums placed in each level (1 to 2500).
13 "pacgum": 42,
14
15 # Points per pacgum, super-pacgum and eaten ghost (0 to 100000).
16 "points_per_pacgum": 10,
17 "points_per_super_pacgum": 50,
18 "points_per_ghost": 200,
19
20 # Seed of the first level's maze (1 to 2147483647).
21 # Later levels get a random maze.
22 "seed": 42,
23
24 # Time limit of each level, in seconds (10 to 3600).
25 "level_max_time": 90,
26
27 # One entry per level, played in this order. At least 10 levels:
28 # missing ones are added with default sizes. Width and height are in
29 # cells (7 to 50).
30 "level": [
31 {"width": 15, "height": 15},
32 {"width": 16, "height": 16},
33 {"width": 17, "height": 17},
34 {"width": 18, "height": 18},
35 {"width": 19, "height": 19},
36 {"width": 20, "height": 20},
37 {"width": 21, "height": 21},
38 {"width": 22, "height": 22},
39 {"width": 23, "height": 23},
40 {"width": 24, "height": 24}
41 ]
42}