add animated water ripple tile and a trap trigger

This commit is contained in:
Quillraven
2025-06-01 21:46:14 +02:00
parent d5cd88a245
commit 7cf6dbe9e4
28 changed files with 445 additions and 167 deletions

BIN
assets/audio/trap.wav Normal file

Binary file not shown.

View File

@@ -361,3 +361,17 @@ player/walk_up
orig: 32, 32
offset: 0, 0
index: 5
trap/idle_down
rotate: false
xy: 38, 13
size: 16, 16
orig: 16, 16
offset: 0, 0
index: 0
trap/idle_down
rotate: false
xy: 410, 129
size: 16, 16
orig: 16, 16
offset: 0, 0
index: 1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,21 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="18" height="16" tilewidth="16" tileheight="16" infinite="0" nextlayerid="7" nextobjectid="15">
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="18" height="16" tilewidth="16" tileheight="16" infinite="0" nextlayerid="7" nextobjectid="17">
<properties>
<property name="music" value="TOWN"/>
</properties>
<tileset firstgid="1" source="objects.tsx"/>
<tileset firstgid="7" source="tileset.tsx"/>
<tileset firstgid="8" source="tileset.tsx"/>
<layer id="1" name="ground" width="18" height="16">
<data encoding="base64" compression="zlib">
eJylkjsPwjAMhLPykCoeEjDBxkgzARPqBEywla2w9lfkp3OVYumwTAgwfFIb+c7xOcE5twRzgxUIXzAyzkpQxO8t2Cn2hmYNesZ5ET1uoCXuoIo1G0PD/92sC3CI2gs4EWejb+c5i3l48gjkUxm6XHgm9vGZWslSPBpQOztbQe9BZ8rURr0g/bheMr0mPHl3rXvdAe/CU8ZWD00qK/F5kM8vezvG2fgO1rvJ9WJt+aFev+9/6YOBYvimNnW3MZgophn9n9wdbaQ=
eJylkjsOwjAQRF3z6SI+HVBDzwGIa6BGqYEa+tAHLpCz+G5MJK80Wm2MgeJJibUz6511cM6twdJgA8IXTIyzEhTxew8OiqOh2YKBcV5EjwdoiSeoYs3O0PB/N+sKnKL2Bi7E1ejbeS5iHp48AvlUhi4Xnol9fKZWshSPBtQ92Qp6DzpTpjbqBenH9ZLpPeHJu2vVDngXnjK2emhSWYnPi3x+2ds5zsZ3sN5Nrhdryw/1+n3/yxCMFOOe2tTdpmCmmGf0fwPl7aDo
</data>
</layer>
<layer id="3" name="water" width="18" height="16">
<data encoding="base64" compression="zlib">
eJxjYBgFo2AUjALKgTES24hIPQAWrABm
eJxjYBgFo2AUjALKgQcQC0DZ7kTqAQAhOACg
</data>
</layer>
<objectgroup id="6" name="trigger"/>
<objectgroup id="6" name="trigger">
<object id="16" name="trap_trigger" x="97" y="114" width="14" height="12">
<properties>
<property name="sensor" type="bool" value="true"/>
</properties>
</object>
</objectgroup>
<objectgroup id="5" name="objects">
<object id="5" gid="3" x="197" y="118" width="80" height="112"/>
<object id="9" gid="5" x="32" y="32" width="16" height="16"/>
@@ -29,5 +35,6 @@
<object id="12" gid="6" x="137" y="206" width="41" height="63"/>
<object id="13" gid="6" x="72" y="93" width="41" height="63"/>
<object id="14" gid="6" x="176" y="123" width="41" height="63"/>
<object id="15" gid="7" x="96" y="128" width="16" height="16"/>
</objectgroup>
</map>

View File

@@ -30,6 +30,11 @@
"type": "string",
"value": ""
},
{
"name": "animationSpeed",
"type": "float",
"value": 0
},
{
"name": "atlasAsset",
"propertyType": "AtlasAsset",

View File

@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.11.0" name="objects" tilewidth="80" tileheight="112" tilecount="4" columns="0">
<tileset version="1.10" tiledversion="1.11.0" name="objects" tilewidth="80" tileheight="112" tilecount="5" columns="0">
<grid orientation="orthogonal" width="1" height="1"/>
<tile id="1" type="Object">
<properties>
<property name="animation" value="IDLE"/>
<property name="animationSpeed" type="float" value="1"/>
<property name="life" type="int" value="12"/>
<property name="lifeReg" type="float" value="0.25"/>
<property name="speed" type="float" value="3.5"/>
@@ -35,4 +36,11 @@
</object>
</objectgroup>
</tile>
<tile id="6" type="Object">
<properties>
<property name="animation" value="IDLE"/>
<property name="z" type="int" value="0"/>
</properties>
<image source="objects/trap.png" width="16" height="16"/>
</tile>
</tileset>

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.11.0" name="tileset" tilewidth="16" tileheight="16" spacing="16" margin="8" tilecount="128" columns="8">
<image source="tileset.png" width="256" height="512"/>
<tileset version="1.10" tiledversion="1.11.0" name="tileset" tilewidth="16" tileheight="16" spacing="16" margin="8" tilecount="192" columns="12">
<image source="tileset.png" width="384" height="512"/>
<tile id="0">
<objectgroup draworder="index" id="2">
<object id="1" x="8" y="9" width="8" height="7"/>
@@ -32,71 +32,79 @@
</objectgroup>
</tile>
<tile id="8">
<animation>
<frame tileid="8" duration="200"/>
<frame tileid="9" duration="200"/>
<frame tileid="10" duration="200"/>
<frame tileid="11" duration="200"/>
</animation>
</tile>
<tile id="12">
<objectgroup draworder="index" id="2">
<object id="1" x="8" y="0" width="4" height="16"/>
</objectgroup>
</tile>
<tile id="10">
<tile id="14">
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="0" width="5" height="16"/>
</objectgroup>
</tile>
<tile id="11">
<tile id="15">
<objectgroup draworder="index" id="2">
<object id="1" x="7" y="0" width="5" height="16"/>
</objectgroup>
</tile>
<tile id="13">
<tile id="17">
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="0" width="5" height="16"/>
</objectgroup>
</tile>
<tile id="16">
<tile id="24">
<objectgroup draworder="index" id="2">
<object id="1" x="9" y="0" width="7" height="8"/>
</objectgroup>
</tile>
<tile id="17">
<tile id="25">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="4" width="16" height="4"/>
</objectgroup>
</tile>
<tile id="18">
<tile id="26">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="0" width="7" height="7"/>
</objectgroup>
</tile>
<tile id="19">
<tile id="27">
<objectgroup draworder="index" id="2">
<object id="1" x="8" y="0" width="8" height="6"/>
</objectgroup>
</tile>
<tile id="20">
<tile id="28">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="6" width="16" height="4"/>
</objectgroup>
</tile>
<tile id="21">
<tile id="29">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="0" width="8" height="7"/>
</objectgroup>
</tile>
<tile id="24">
<tile id="36">
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="5" width="12" height="11"/>
</objectgroup>
</tile>
<tile id="25">
<tile id="37">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="5" width="12" height="11"/>
</objectgroup>
</tile>
<tile id="32">
<tile id="48">
<objectgroup draworder="index" id="2">
<object id="1" x="4" y="0" width="12" height="14"/>
</objectgroup>
</tile>
<tile id="33">
<tile id="49">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="0" width="12" height="14"/>
</objectgroup>
@@ -105,21 +113,21 @@
<wangset name="Unnamed Set" type="corner" tile="-1">
<wangcolor name="gras" color="#ff0000" tile="-1" probability="1"/>
<wangcolor name="dirt" color="#00ff00" tile="-1" probability="1"/>
<wangtile tileid="9" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="48" wangid="0,1,0,2,0,1,0,1"/>
<wangtile tileid="49" wangid="0,1,0,2,0,2,0,1"/>
<wangtile tileid="50" wangid="0,1,0,1,0,2,0,1"/>
<wangtile tileid="56" wangid="0,2,0,2,0,1,0,1"/>
<wangtile tileid="58" wangid="0,1,0,1,0,2,0,2"/>
<wangtile tileid="64" wangid="0,2,0,1,0,1,0,1"/>
<wangtile tileid="65" wangid="0,2,0,1,0,1,0,2"/>
<wangtile tileid="66" wangid="0,1,0,1,0,1,0,2"/>
<wangtile tileid="72" wangid="0,2,0,1,0,2,0,2"/>
<wangtile tileid="73" wangid="0,2,0,2,0,1,0,2"/>
<wangtile tileid="80" wangid="0,1,0,2,0,2,0,2"/>
<wangtile tileid="81" wangid="0,2,0,2,0,2,0,1"/>
<wangtile tileid="99" wangid="0,2,0,2,0,2,0,2"/>
<wangtile tileid="121" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="13" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="72" wangid="0,1,0,2,0,1,0,1"/>
<wangtile tileid="73" wangid="0,1,0,2,0,2,0,1"/>
<wangtile tileid="74" wangid="0,1,0,1,0,2,0,1"/>
<wangtile tileid="84" wangid="0,2,0,2,0,1,0,1"/>
<wangtile tileid="86" wangid="0,1,0,1,0,2,0,2"/>
<wangtile tileid="96" wangid="0,2,0,1,0,1,0,1"/>
<wangtile tileid="97" wangid="0,2,0,1,0,1,0,2"/>
<wangtile tileid="98" wangid="0,1,0,1,0,1,0,2"/>
<wangtile tileid="108" wangid="0,2,0,1,0,2,0,2"/>
<wangtile tileid="109" wangid="0,2,0,2,0,1,0,2"/>
<wangtile tileid="120" wangid="0,1,0,2,0,2,0,2"/>
<wangtile tileid="121" wangid="0,2,0,2,0,2,0,1"/>
<wangtile tileid="147" wangid="0,2,0,2,0,2,0,2"/>
<wangtile tileid="181" wangid="0,1,0,1,0,1,0,1"/>
</wangset>
</wangsets>
</tileset>