From ec0e51231f95b4d847e4e94eb7146d3a0c159512 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 11 Nov 2018 20:31:22 +0100 Subject: Prepare support for adding extra elements to map layers --- dist/resources/map/test.json | 64 +++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 30 deletions(-) (limited to 'dist/resources') diff --git a/dist/resources/map/test.json b/dist/resources/map/test.json index 57e5a23..c4f4f22 100644 --- a/dist/resources/map/test.json +++ b/dist/resources/map/test.json @@ -16,36 +16,40 @@ "stone/wall/bottom_left_inner" ], "layers": [ - [ - [0, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 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, 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] - ], - [ - [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, 0, 0, 0, 0, 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