From 09cc0f0e81a339faec191b773b5eca985d15799c Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 27 Sep 2020 17:42:44 +0200 Subject: templates are not used as {"type": something} anymore --- content/maps/cave.json | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'content/maps/cave.json') diff --git a/content/maps/cave.json b/content/maps/cave.json index 084aeca..bc67b8d 100644 --- a/content/maps/cave.json +++ b/content/maps/cave.json @@ -59,35 +59,19 @@ ".": "ground", "+": "floor", "<": [ - {"type": "portal", "kwargs": {"destination": "begin", "destpos": "caveentrance"}}, - {"type": "img", "kwargs": {"sprite": "stairup"}}, + {":template": "portal", "destination": "begin", "destpos": "caveentrance"}, + {":template": "img", "sprite": "stairup"}, "floor" ], "g": [ "ground", - { - "type": "spawner", - "kwargs": { - "template": {"type": "goblin"}, - "amount": 2, - "delay": 50, - "initial_spawn": true - } - }, - {"type": "img", "kwargs": {"sprite": "spawner"}} + {":template": "spawner", "template": {":template": "goblin"}, "amount": 2, "delay": 50, "initial_spawn": true}, + {":template": "img", "sprite": "spawner"} ], "T": [ "ground", - { - "type": "spawner", - "kwargs": { - "template": {"type": "troll"}, - "amount": 1, - "delay": 200, - "initial_spawn": true - } - }, - {"type": "img", "kwargs": {"sprite": "spawner"}} + {":template": "spawner", "template": {":template": "troll"}, "amount": 1, "delay": 200, "initial_spawn": true}, + {":template": "img", "sprite": "spawner"} ], " ": [] } -- cgit