From b3950330e3351437f153c6c1debb3821d6e28864 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 8 Dec 2018 12:39:18 +0100 Subject: Create Electron app --- static/resources/map/test.json | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 static/resources/map/test.json (limited to 'static/resources/map') diff --git a/static/resources/map/test.json b/static/resources/map/test.json new file mode 100644 index 0000000..91efc19 --- /dev/null +++ b/static/resources/map/test.json @@ -0,0 +1,84 @@ +{ + "tiles": [ + "-stone/floor", + "-stone/plate", + "-stone/wall/top", + "-stone/wall/right", + "-stone/wall/bottom", + "-stone/wall/left", + "-stone/wall/top_left", + "-stone/wall/top_right", + "-stone/wall/bottom_right", + "-stone/wall/bottom_left", + "-stone/wall/top_left_inner", + "-stone/wall/top_right_inner", + "-stone/wall/bottom_right_inner", + "-stone/wall/bottom_left_inner", + "@water", + "-stone/border/bottom_right", + "-stone/border/bottom_left" + ], + "layers": [ + { + "tiles": [ + [0, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 0], + [0, 6, 1, 1, 1, 1, 15, 15, 1, 1, 1, 1, 4, 0], + [0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0], + [0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0], + [3, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 3], + [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], + [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], + [5, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 5], + [0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0], + [0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0], + [0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0], + [0, 10, 5, 5, 5, 14, 1, 1, 13, 5, 5, 5, 9, 0], + [0, 0, 0, 0, 0, 6, 1, 1, 4, 0, 0, 0, 0, 0] + ] + }, + { + "tiles": [ + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 17, 16, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], + [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], + [0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0] + ] + } + ], + "collision": [ + { + "type": "polygon", + "vertices": [ + [ 2, 1], + [ 6, 1], + [ 6, 2], + [ 8, 2], + [ 8, 1], + [12, 1], + [12, 5], + [14, 5], + [14, 7], + [12, 7], + [12, 11], + [ 8, 11], + [ 8, 13], + [ 6, 13], + [ 6, 11], + [ 2, 11], + [ 2, 7], + [ 0, 7], + [ 0, 5], + [ 2, 5] + ] + } + ] +} -- cgit v1.2.3