From 3280ab57bffb3fa1018d406eb25a3d98564a51d7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 5 Jan 2016 18:10:35 +0100 Subject: Implement basic map rendering --- static/resources/map/test.json | 141 ++++++++++++++++++++--------------------- 1 file changed, 68 insertions(+), 73 deletions(-) (limited to 'static/resources/map') diff --git a/static/resources/map/test.json b/static/resources/map/test.json index 1caf8e7..12b1894 100644 --- a/static/resources/map/test.json +++ b/static/resources/map/test.json @@ -1,49 +1,44 @@ { - "options": { - "width": 32, - "height": 32, - "layers": 2 - }, "tiles": { "G": {"rotate": 0, "file": "grass"}, "<": {"rotate": 0, "file": "road_left"}, ">": {"rotate": 0, "file": "road_right"} }, + "collision": [ + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111", + "11111111111111111111111111111111" + ], "layers": [ - [ - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111", - "11111111111111111111111111111111" - ], [ "GGGGGGGGGGG<>GGGGGGGGGGGGGGGGGGG", "GGGGGGGGGGG<>GGGGGGGGGGGGGGGGGGG", @@ -77,40 +72,40 @@ "GGGGGGGGGGG<>GGGGGGGGGGGGGGGGGGG", "GGGGGGGGGGG<>GGGGGGGGGGGGGGGGGGG", "GGGGGGGGGGG<>GGGGGGGGGGGGGGGGGGG" + ], + [ + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................", + "................................" ] - ], - "collision": [ - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................", - "................................" ] } -- cgit v1.2.3