summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-05 01:28:35 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-05 01:28:35 +0100
commit9be9f8e73940f1a38410575557fcd57cc620a8f4 (patch)
tree40e42751c97d7e213aefa719feac9d5509810376 /dist
parent5593bf2d364667d8402daa8fde8f43647f7360a6 (diff)
downloadrpgedit-9be9f8e73940f1a38410575557fcd57cc620a8f4.tar
rpgedit-9be9f8e73940f1a38410575557fcd57cc620a8f4.zip
Read collision barriers from map file
Diffstat (limited to 'dist')
-rw-r--r--dist/resources/map/test.json23
1 files changed, 23 insertions, 0 deletions
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]
+ ]
+ }
]
}