Add support for objects with tiles

This commit is contained in:
2023-11-11 09:21:59 +01:00
parent b46663bf88
commit 3c8254c6f6
10 changed files with 101 additions and 25 deletions

View File

@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="right-down" width="80" height="50" tilewidth="16" tileheight="16" infinite="0" nextlayerid="33" nextobjectid="19728">
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="right-down" width="80" height="50" tilewidth="16" tileheight="16" infinite="0" nextlayerid="33" nextobjectid="19729">
<editorsettings>
<export target="../assets/maps/test.tmj" format="json"/>
</editorsettings>
<tileset firstgid="1" source="terrain.tsx"/>
<tileset firstgid="298" source="buildings.tsx"/>
<tileset firstgid="1322" source="entities.tsx"/>
<layer id="1" name="Terrain" width="80" height="50">
<data encoding="csv">
1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,
@@ -329,7 +330,9 @@
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup id="31" name="Entities"/>
<objectgroup id="31" name="Entities">
<object id="19728" gid="1322" x="1095.25" y="405.75" width="10" height="10"/>
</objectgroup>
<objectgroup id="28" name="Game">
<object id="19726" name="camera" x="1048" y="476">
<point/>