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

BIN
assets/entities.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

14
assets/entities.tsj Normal file
View File

@@ -0,0 +1,14 @@
{ "columns":64,
"image":"entities.png",
"imageheight":1024,
"imagewidth":1024,
"margin":0,
"name":"entities",
"spacing":0,
"tilecount":4096,
"tiledversion":"1.10.2",
"tileheight":16,
"tilewidth":16,
"type":"tileset",
"version":"1.10"
}

View File

@@ -374,7 +374,19 @@
"draworder":"topdown",
"id":31,
"name":"Entities",
"objects":[],
"objects":[
{
"gid":1322,
"height":10,
"id":19728,
"name":"",
"rotation":0,
"type":"",
"visible":true,
"width":10,
"x":1095.25,
"y":405.75
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
@@ -405,7 +417,7 @@
"y":0
}],
"nextlayerid":33,
"nextobjectid":19728,
"nextobjectid":19729,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.10.2",
@@ -418,6 +430,10 @@
{
"firstgid":298,
"source":"..\/..\/tiled\/buildings.tsx"
},
{
"firstgid":1322,
"source":"..\/..\/tiled\/entities.tsx"
}],
"tilewidth":16,
"type":"map",