From 289a342917e9291895b0332dd4ab412b15a7fabf Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 6 Apr 2020 19:29:43 +0200 Subject: added rooms from python asciifarm --- content/maps/basement.json | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 content/maps/basement.json (limited to 'content/maps/basement.json') diff --git a/content/maps/basement.json b/content/maps/basement.json new file mode 100644 index 0000000..0d090b4 --- /dev/null +++ b/content/maps/basement.json @@ -0,0 +1,49 @@ +{ + "width": 24, + "height": 11, + "spawn": [17, 8], + "places": { + "stairup": [17, 8] + }, + + "field": [ + " ############### ", + " #++++++++a++++# ", + " #+++++++++++++# ", + " #+a+++++++++++# ", + " #+++++++++++++# ", + " #+++++a+++++++# ", + " ##D######D##### ", + " #++++++#++++++# ", + " #+a++:+#++++<+# ", + " #++++++#++++++# ", + " ############### " + ], + "mapping": { + ",": "grass", + "Y": ["grass", "radishplant"], + "~": "water", + "#": "wall", + "X": "rock", + ".": "ground", + "+": "floor", + "^": ["spiketrap"], + "D": ["ground", "closeddoor"], + "<": [ + {"type": "portal", "args": ["begin", "stairdown"]}, + {"type": "img", "args": ["stairup"]}, + "floor" + ], + "a": ["floor", { + "type": "spawner", + "args": [{"type": "rat"}, 1, 300], + "kwargs": {"initialSpawn": true, "setHome": true} + }], + ":": ["floor", { + "type": "spawner", + "args": [{"type": "carrotseed"}, 1, 1200], + "kwargs": {"initialSpawn": false} + }], + " ": [] + } +} -- cgit