Support for colliders

This commit is contained in:
2023-11-08 16:41:00 +01:00
parent e56c2a067e
commit 50241f9c26
10 changed files with 255 additions and 27 deletions

View File

@@ -8,6 +8,34 @@
"tilecount":297,
"tiledversion":"1.10.2",
"tileheight":16,
"tiles":[
{
"id":185,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"ellipse":true,
"height":6,
"id":1,
"name":"collision",
"rotation":0,
"type":"",
"visible":true,
"width":6,
"x":5,
"y":8
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
}
}],
"tilewidth":16,
"type":"tileset",
"version":"1.10",

59
assets/test.json Normal file
View File

@@ -0,0 +1,59 @@
{ "columns":18,
"image":"tilemap_packed.png",
"imageheight":176,
"imagewidth":288,
"margin":0,
"name":"test",
"spacing":0,
"tilecount":198,
"tiledversion":"1.10.2",
"tileheight":16,
"tiles":[
{
"id":0,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":12,
"id":1,
"name":"test",
"properties":[
{
"name":"test",
"type":"string",
"value":"123"
}],
"rotation":0,
"type":"test",
"visible":true,
"width":12,
"x":2,
"y":2
},
{
"height":4,
"id":2,
"name":"",
"rotation":0,
"type":"",
"visible":true,
"width":4,
"x":6,
"y":6
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"type":"grass"
}],
"tilewidth":16,
"type":"tileset",
"version":"1.10"
}