summaryrefslogtreecommitdiff
path: root/content/maps/cave.json
blob: bc67b8d596f2848a311953b0ea04de93dc4fe315 (plain)
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
{
	"width": 64,
	"height": 44,
	"spawn": [32, 4],
	"places": {
		"stairup": [32, 4]
	},
	"field": [
		"                                                                ",
		"                                                                ",
		"                               XXX                              ",
		"                             XXX<X                              ",
		"                            XX...X                              ",
		"                            X....X                              ",
		"                            X....X                              ",
		"                            X....XX                             ",
		"                            X.....X                             ",
		"                            XX....X                             ",
		"                             X....X                             ",
		"                             X....X                             ",
		"                            XX....X                             ",
		"                            X.....X                             ",
		"                            X.....X                             ",
		"                            X.....X                             ",
		"                            X....XX                             ",
		"                            X...XX                              ",
		"                            X...X                               ",
		"                            X...X                               ",
		"                           XX...X                               ",
		"             XXXXXXX       X....XX                              ",
		"           XXX.....XXXXXXXXX.....XXXXXXXXX    XXXXX             ",
		"           X.............................XXXXXX...XX            ",
		"          XX.......................................X            ",
		"          X.......................................XX            ",
		"          X........g.....................g........X             ",
		"          X.......................................XX            ",
		"          X........................................X            ",
		"          X.......................................XX            ",
		"          X.......................................X             ",
		"         XX.......................................X             ",
		"       XXX........................................X             ",
		"       X..........................................XX            ",
		"       X...........g......................g........X            ",
		"       XX..........................................X            ",
		"        X..........................................X            ",
		"        XXX.......................................XX            ",
		"          X.......................................X             ",
		"          X...XX.................................XX             ",
		"          X.X...X.............T..............XX.XX              ",
		"          XXX.........................XXX.......X               ",
		"            XXXXXXXXXXXXX...........XXX XXXXXXXXX               ",
		"                        XXXXXXXXXXXXX                           "
	],
	"mapping": {
		",": "grass",
		"~": "water",
		"X": "wall",
		"X": "rock",
		".": "ground",
		"+": "floor",
		"<": [
			{":template": "portal", "destination": "begin", "destpos": "caveentrance"},
			{":template": "img", "sprite": "stairup"},
			"floor"
		],
		"g": [
			"ground", 
			{":template": "spawner", "template": {":template": "goblin"}, "amount": 2, "delay": 50, "initial_spawn": true},
			{":template": "img", "sprite": "spawner"}
		],
		"T": [
			"ground", 
			{":template": "spawner", "template": {":template": "troll"}, "amount": 1, "delay": 200, "initial_spawn": true},
			{":template": "img", "sprite": "spawner"}
		],
		" ": []
	}
}