Add hitboxes

This commit is contained in:
2024-01-28 11:00:32 +01:00
parent 0a4c1fd154
commit a61768e912
15 changed files with 494 additions and 200 deletions

View File

@@ -227,6 +227,29 @@
"tileid":28
}],
"id":27,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":12,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":2
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"animation",
@@ -997,6 +1020,29 @@
"tileid":540
}],
"id":539,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":14,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":0
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"animation",
@@ -1639,6 +1685,29 @@
"tileid":1052
}],
"id":1051,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":14,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":0
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"animation",
@@ -2353,6 +2422,29 @@
"tileid":1564
}],
"id":1563,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":14,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":0
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"animation",
@@ -5053,6 +5145,29 @@
"tileid":2076
}],
"id":2075,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":13,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":1
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"animation",
@@ -6243,6 +6358,29 @@
"tileid":2588
}],
"id":2587,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":11,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":3
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"animation",
@@ -6845,16 +6983,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":11,
"id":1,
"name":"",
"height":9,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":10,
"x":3,
"y":3
"width":8,
"x":4,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -6871,6 +7008,29 @@
},
{
"id":5889,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":7,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":10,
"x":3,
"y":7
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"terrain",
@@ -6887,16 +7047,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -6920,16 +7079,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -7378,16 +7536,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -7411,16 +7568,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -7728,16 +7884,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -7761,16 +7916,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -8189,16 +8343,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -8490,16 +8643,15 @@
"name":"",
"objects":[
{
"ellipse":true,
"height":8,
"id":1,
"name":"",
"height":10,
"id":2,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":8,
"x":4,
"y":6
"width":4,
"x":6,
"y":4
}],
"opacity":1,
"type":"objectgroup",
@@ -8808,6 +8960,29 @@
},
{
"id":7170,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":10,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":10,
"x":3,
"y":3
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"terrain",
@@ -8818,6 +8993,29 @@
},
{
"id":7171,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":9,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":10,
"x":3,
"y":4
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"terrain",
@@ -8828,6 +9026,29 @@
},
{
"id":7172,
"objectgroup":
{
"draworder":"index",
"id":2,
"name":"",
"objects":[
{
"height":10,
"id":1,
"name":"hitbox",
"rotation":0,
"type":"",
"visible":true,
"width":14,
"x":1,
"y":3
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
"properties":[
{
"name":"terrain",

View File

@@ -125,6 +125,9 @@
<property name="entity" value=""/>
<property name="player" type="int" value="0"/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="4" y="2" width="8" height="12"/>
</objectgroup>
<animation>
<frame tileid="27" duration="200"/>
<frame tileid="28" duration="200"/>
@@ -512,6 +515,9 @@
<property name="player" type="int" value="0"/>
<property name="size_y" type="int" value="2"/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="4" y="0" width="8" height="14"/>
</objectgroup>
<animation>
<frame tileid="539" duration="200"/>
<frame tileid="540" duration="200"/>
@@ -789,6 +795,9 @@
<property name="player" type="int" value="0"/>
<property name="size_y" type="int" value="2"/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="4" y="0" width="8" height="14"/>
</objectgroup>
<animation>
<frame tileid="1051" duration="200"/>
<frame tileid="1052" duration="200"/>
@@ -1106,6 +1115,9 @@
<property name="player" type="int" value="0"/>
<property name="size_y" type="int" value="2"/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="4" y="0" width="8" height="14"/>
</objectgroup>
<animation>
<frame tileid="1563" duration="200"/>
<frame tileid="1564" duration="200"/>
@@ -1935,6 +1947,9 @@
<property name="entity" value=""/>
<property name="size_y" type="int" value="2"/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="4" y="1" width="8" height="13"/>
</objectgroup>
<animation>
<frame tileid="2075" duration="200"/>
<frame tileid="2076" duration="200"/>
@@ -2306,6 +2321,9 @@
<property name="entity" value=""/>
<property name="size_y" type="int" value="2"/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="4" y="3" width="8" height="11"/>
</objectgroup>
<animation>
<frame tileid="2587" duration="200"/>
<frame tileid="2588" duration="200"/>
@@ -2559,24 +2577,23 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="3" y="3" width="10" height="11">
<ellipse/>
</object>
<object id="2" name="hitbox" x="4" y="4" width="8" height="9"/>
</objectgroup>
</tile>
<tile id="5889">
<properties>
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="3" y="7" width="10" height="7"/>
</objectgroup>
</tile>
<tile id="5890">
<properties>
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="5891">
@@ -2584,9 +2601,7 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="5892">
@@ -2765,9 +2780,7 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="6147">
@@ -2775,9 +2788,7 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="6148">
@@ -2896,9 +2907,7 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="6403">
@@ -2906,9 +2915,7 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="6404">
@@ -3071,9 +3078,7 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="6657">
@@ -3197,9 +3202,7 @@
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="6" width="8" height="8">
<ellipse/>
</object>
<object id="2" name="hitbox" x="6" y="4" width="4" height="10"/>
</objectgroup>
</tile>
<tile id="6913">
@@ -3331,16 +3334,25 @@
<properties>
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="3" y="3" width="10" height="10"/>
</objectgroup>
</tile>
<tile id="7171" type="gold_ore">
<properties>
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="3" y="4" width="10" height="9"/>
</objectgroup>
</tile>
<tile id="7172" type="gold_ore">
<properties>
<property name="terrain" value=""/>
</properties>
<objectgroup draworder="index" id="2">
<object id="1" name="hitbox" x="1" y="3" width="14" height="10"/>
</objectgroup>
</tile>
<tile id="7173">
<properties>