Add test doors to tilemap
authorMegaBrutal <code+git@megabrutal.com>
Mon, 10 Sep 2018 22:25:00 +0000 (00:25 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Mon, 10 Sep 2018 22:25:00 +0000 (00:25 +0200)
Test doors added with all possible orientations.

modified:   tilemap.json
modified:   tilemap.tmx

tilemap.json
tilemap.tmx

index 38cfc3fb3e92dcce165d21cb2e095a867c987dce..5a7025ead1daedf01c79dbd4cd31a5ec650aefc7 100644 (file)
@@ -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, 2, 2, 2, 2, 2, 0, 0, 0, 0,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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,
                  "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",
          "x":0,
          "y":0
         }],
- "nextobjectid":4,
+ "nextobjectid":19,
  "orientation":"orthogonal",
  "renderorder":"right-down",
  "tiledversion":"1.1.6",
index e5a4dfe5526cc8f968d3244fe453a30f9a296dde..d05a758187adacba86c8e79bb50ec5b14e9d7c42 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<map version="1.0" tiledversion="1.1.6" orientation="orthogonal" renderorder="right-down" width="19" height="19" tilewidth="64" tileheight="64" infinite="0" nextobjectid="4">
+<map version="1.0" tiledversion="1.1.6" orientation="orthogonal" renderorder="right-down" width="19" height="19" tilewidth="64" tileheight="64" infinite="0" nextobjectid="19">
  <tileset firstgid="1" name="tileset" tilewidth="64" tileheight="64" tilecount="50" columns="10">
   <image source="tileset.png" width="640" height="320"/>
  </tileset>
 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,
  <objectgroup name="objects">
   <object id="2" name="john" type="spawnpoint" gid="51" x="353.333" y="1121.33" width="64" height="64"/>
   <object id="3" name="clara" type="spawnpoint" gid="51" x="774.667" y="894.667" width="64" height="64"/>
+  <object id="4" name="cutedoor" type="door" gid="62" x="320" y="580" width="64" height="64">
+   <properties>
+    <property name="longpanel" type="bool" value="false"/>
+   </properties>
+  </object>
+  <object id="5" name="cutedoor" type="door" gid="62" x="448" y="516" width="64" height="64" rotation="180">
+   <properties>
+    <property name="longpanel" type="bool" value="false"/>
+   </properties>
+  </object>
+  <object id="7" name="cutedoor" type="door" gid="62" x="320" y="640" width="64" height="64">
+   <properties>
+    <property name="longpanel" type="bool" value="true"/>
+   </properties>
+  </object>
+  <object id="10" name="cutedoor" type="door" gid="62" x="448" y="576" width="64" height="64" rotation="180">
+   <properties>
+    <property name="longpanel" type="bool" value="true"/>
+   </properties>
+  </object>
+  <object id="11" name="cutedoor" type="door" gid="62" x="252.798" y="895.206" width="64" height="64" rotation="270">
+   <properties>
+    <property name="longpanel" type="bool" value="true"/>
+   </properties>
+  </object>
+  <object id="12" name="cutedoor" type="door" gid="62" x="192.798" y="895.329" width="64" height="64" rotation="270">
+   <properties>
+    <property name="longpanel" type="bool" value="false"/>
+   </properties>
+  </object>
+  <object id="13" name="cutedoor" type="door" gid="62" x="188.535" y="767.338" width="64" height="64" rotation="90">
+   <properties>
+    <property name="longpanel" type="bool" value="true"/>
+   </properties>
+  </object>
+  <object id="14" name="cutedoor" type="door" gid="62" x="128.535" y="767.461" width="64" height="64" rotation="90">
+   <properties>
+    <property name="longpanel" type="bool" value="false"/>
+   </properties>
+  </object>
  </objectgroup>
 </map>