Starting on shaped tile hitboxes

This commit is contained in:
2025-06-19 23:49:53 -05:00
parent 6b16c97c64
commit 1022f45565
17 changed files with 360 additions and 48 deletions

View File

@ -33,6 +33,7 @@
"overworld.tsx"
],
"project": "map project.tiled-project",
"property.type": "int",
"recentFiles": [
"overworld.tsx",
"map.tmj",

View File

@ -411,17 +411,11 @@
"id":3,
"name":"Object Layer 1",
"objects":[
{
"id":3,
"template":"templates\/NPC.tx",
"x":6551.3106060606,
"y":6829.13636363636
},
{
"id":4,
"template":"templates\/NPC.tx",
"x":6649.66666666667,
"y":6741.58333333334
"x":6650.41666666667,
"y":6753.58333333334
},
{
"gid":257,
@ -438,14 +432,14 @@
{
"id":7,
"template":"templates\/NPC.tx",
"x":6497,
"y":6942
"x":6700.25,
"y":6838.75
},
{
"id":8,
"template":"templates\/NPC.tx",
"x":6640,
"y":6817
"x":6559,
"y":6754.75
},
{
"id":9,
@ -456,8 +450,8 @@
{
"id":10,
"template":"templates\/NPC.tx",
"x":6781,
"y":6746.33333333333
"x":6697,
"y":6769.08333333333
}],
"opacity":1,
"type":"objectgroup",
@ -466,7 +460,7 @@
"y":0
}],
"nextlayerid":6,
"nextobjectid":11,
"nextobjectid":13,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.11.1",

View File

@ -1,6 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.11.1" name="overworld" tilewidth="16" tileheight="16" tilecount="256" columns="16">
<image source="tilemap.png" width="256" height="256"/>
<tile id="1">
<properties>
<property name="solid" type="int" value="4"/>
</properties>
</tile>
<tile id="3">
<properties>
<property name="solid" type="int" value="5"/>
</properties>
</tile>
<tile id="18">
<properties>
<property name="solid" type="int" value="1"/>
</properties>
</tile>
<tile id="33">
<properties>
<property name="solid" type="int" value="2"/>
</properties>
</tile>
<tile id="35">
<properties>
<property name="solid" type="int" value="3"/>
</properties>
</tile>
<tile id="54">
<objectgroup draworder="index" id="3">
<object id="3" x="5.04743" y="5.92885" width="7.93676" height="6.0751"/>