From 6252fb1168fd9caedbbad193159543b24013759d Mon Sep 17 00:00:00 2001 From: MegaBrutal Date: Tue, 11 Sep 2018 00:25:00 +0200 Subject: [PATCH 1/1] Add test doors to tilemap Test doors added with all possible orientations. modified: tilemap.json modified: tilemap.tmx --- tilemap.json | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++- tilemap.tmx | 56 +++++++++++++++--- 2 files changed, 210 insertions(+), 10 deletions(-) diff --git a/tilemap.json b/tilemap.json index 38cfc3f..5a7025e 100644 --- a/tilemap.json +++ b/tilemap.json @@ -2,7 +2,7 @@ "infinite":false, "layers":[ { - "data":[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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2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, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 4, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 4, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "height":19, "name":"floor", "opacity":1, @@ -61,6 +61,166 @@ "width":64, "x":774.666666666667, "y":894.666666666667 + }, + { + "gid":62, + "height":64, + "id":4, + "name":"cutedoor", + "properties": + { + "longpanel":false + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":0, + "type":"door", + "visible":true, + "width":64, + "x":320, + "y":580 + }, + { + "gid":62, + "height":64, + "id":5, + "name":"cutedoor", + "properties": + { + "longpanel":false + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":180, + "type":"door", + "visible":true, + "width":64, + "x":448, + "y":516 + }, + { + "gid":62, + "height":64, + "id":7, + "name":"cutedoor", + "properties": + { + "longpanel":true + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":0, + "type":"door", + "visible":true, + "width":64, + "x":320, + "y":640 + }, + { + "gid":62, + "height":64, + "id":10, + "name":"cutedoor", + "properties": + { + "longpanel":true + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":180, + "type":"door", + "visible":true, + "width":64, + "x":448, + "y":576 + }, + { + "gid":62, + "height":64, + "id":11, + "name":"cutedoor", + "properties": + { + "longpanel":true + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":270, + "type":"door", + "visible":true, + "width":64, + "x":252.797924388358, + "y":895.20591597973 + }, + { + "gid":62, + "height":64, + "id":12, + "name":"cutedoor", + "properties": + { + "longpanel":false + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":270, + "type":"door", + "visible":true, + "width":64, + "x":192.798050825782, + "y":895.32909258007 + }, + { + "gid":62, + "height":64, + "id":13, + "name":"cutedoor", + "properties": + { + "longpanel":true + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":90, + "type":"door", + "visible":true, + "width":64, + "x":188.535282507552, + "y":767.337574086597 + }, + { + "gid":62, + "height":64, + "id":14, + "name":"cutedoor", + "properties": + { + "longpanel":false + }, + "propertytypes": + { + "longpanel":"bool" + }, + "rotation":90, + "type":"door", + "visible":true, + "width":64, + "x":128.535408944975, + "y":767.460750686937 }], "opacity":1, "type":"objectgroup", @@ -68,7 +228,7 @@ "x":0, "y":0 }], - "nextobjectid":4, + "nextobjectid":19, "orientation":"orthogonal", "renderorder":"right-down", "tiledversion":"1.1.6", diff --git a/tilemap.tmx b/tilemap.tmx index e5a4dfe..d05a758 100644 --- a/tilemap.tmx +++ b/tilemap.tmx @@ -1,5 +1,5 @@ - + @@ -16,13 +16,13 @@ 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,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0, -0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0, -0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0, -0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0, -0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0, -0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0, -0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0, -0,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0, +0,2,2,2,4,2,2,4,2,2,2,0,0,0,0,0,0,0,0, +0,2,2,2,4,2,2,4,2,2,2,0,0,0,0,0,0,0,0, +0,2,2,2,4,4,4,4,2,2,2,2,2,2,0,0,0,0,0, +0,4,4,4,4,2,2,2,2,2,2,2,2,2,0,0,0,0,0, +0,4,2,2,4,2,2,2,2,2,2,2,2,2,0,0,0,0,0, +0,4,2,2,4,2,2,2,2,2,2,2,2,2,0,0,0,0,0, +0,4,4,4,4,2,2,2,2,2,2,2,2,2,0,0,0,0,0, 0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0, 0,2,2,1,1,1,1,1,1,2,2,0,0,0,0,0,0,0,0, 0,2,2,1,1,1,1,1,1,2,2,0,0,0,0,0,0,0,0, @@ -78,5 +78,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.34.1