add life info to game

This commit is contained in:
Quillraven
2025-06-01 20:26:36 +02:00
parent cdb23860b8
commit d5cd88a245
23 changed files with 323 additions and 21 deletions

BIN
assets/audio/life_reg.wav Normal file

Binary file not shown.

View File

@@ -19,7 +19,7 @@
<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"/>
<object id="10" gid="2" x="25" y="214" width="32" height="32">
<object id="10" name="Player" gid="2" x="25" y="214" width="32" height="32">
<properties>
<property name="camFollow" type="bool" value="true"/>
<property name="controller" type="bool" value="true"/>

View File

@@ -36,6 +36,16 @@
"type": "string",
"value": "OBJECTS"
},
{
"name": "life",
"type": "int",
"value": 0
},
{
"name": "lifeReg",
"type": "float",
"value": 0
},
{
"name": "speed",
"type": "float",

View File

@@ -4,6 +4,8 @@
<tile id="1" type="Object">
<properties>
<property name="animation" value="IDLE"/>
<property name="life" type="int" value="12"/>
<property name="lifeReg" type="float" value="0.25"/>
<property name="speed" type="float" value="3.5"/>
</properties>
<image source="objects/player.png" width="32" height="32"/>

View File

@@ -6,21 +6,21 @@ filter: Nearest, Nearest
repeat: none
banner
rotate: false
xy: 4, 602
xy: 4, 626
size: 632, 164
orig: 632, 164
offset: 0, 0
index: -1
bar
rotate: false
xy: 4, 461
xy: 4, 485
size: 107, 8
orig: 107, 8
offset: 0, 0
index: -1
bar_frame
rotate: false
xy: 644, 750
xy: 644, 774
size: 130, 16
split: 3, 3, 3, 2
orig: 130, 16
@@ -28,7 +28,7 @@ bar_frame
index: -1
button
rotate: false
xy: 644, 726
xy: 644, 750
size: 32, 16
split: 5, 5, 8, 6
orig: 32, 16
@@ -36,15 +36,50 @@ button
index: -1
frame
rotate: false
xy: 4, 477
xy: 4, 501
size: 129, 117
split: 46, 49, 30, 54
orig: 129, 117
offset: 0, 0
index: -1
selection
life_00
rotate: false
xy: 782, 774
size: 16, 16
orig: 16, 16
offset: 0, 0
index: -1
life_01
rotate: false
xy: 4, 461
size: 16, 16
orig: 16, 16
offset: 0, 0
index: -1
life_02
rotate: false
xy: 141, 569
size: 16, 16
orig: 16, 16
offset: 0, 0
index: -1
life_03
rotate: false
xy: 173, 602
size: 16, 16
orig: 16, 16
offset: 0, 0
index: -1
life_04
rotate: false
xy: 644, 726
size: 16, 16
orig: 16, 16
offset: 0, 0
index: -1
selection
rotate: false
xy: 141, 593
size: 24, 25
split: 8, 8, 9, 9
orig: 24, 25

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 104 KiB