Read collision barriers from map file

This commit is contained in:
Matthias Schiffer 2018-11-05 01:28:35 +01:00
parent 5593bf2d36
commit 9be9f8e739
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
4 changed files with 64 additions and 29 deletions

View file

@ -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]
]
}
]
}