add life info to game
This commit is contained in:
@@ -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"/>
|
||||
|
||||
@@ -36,6 +36,16 @@
|
||||
"type": "string",
|
||||
"value": "OBJECTS"
|
||||
},
|
||||
{
|
||||
"name": "life",
|
||||
"type": "int",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "lifeReg",
|
||||
"type": "float",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"name": "speed",
|
||||
"type": "float",
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user