From 9be9f8e73940f1a38410575557fcd57cc620a8f4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 5 Nov 2018 01:28:35 +0100 Subject: Read collision barriers from map file --- dist/resources/map/test.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'dist') diff --git a/dist/resources/map/test.json b/dist/resources/map/test.json index bb0b1da..0fede44 100644 --- a/dist/resources/map/test.json +++ b/dist/resources/map/test.json @@ -46,5 +46,28 @@ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ] + ], + "collision": [ + { + "type": "polygon", + "vertices": [ + [1, 1], + [11, 1], + [11, 5], + [12, 5], + [12, 7], + [11, 7], + [11, 11], + [7, 11], + [7, 12], + [5, 12], + [5, 11], + [1, 11], + [1, 7], + [0, 7], + [0, 5], + [1, 5] + ] + } ] } -- cgit v1.2.3