Player changes:
- reimplemented & improved player inventory - now player has "Action2" which means he can interact with the environment - added weapon energy cost - updated player action interface
This commit is contained in:
@ -11,7 +11,8 @@
|
||||
<Weapon damage="0.5"
|
||||
critProbability="0"
|
||||
critDamage="0"
|
||||
attackDuration="0.2" />
|
||||
attackDuration="0.2"
|
||||
energyCost="1" />
|
||||
<Hoe />
|
||||
</GameObject>
|
||||
|
||||
@ -25,7 +26,8 @@
|
||||
<Weapon damage="0"
|
||||
critProbability="0"
|
||||
critDamage="0"
|
||||
attackDuration="0.2" />
|
||||
attackDuration="0.2"
|
||||
energyCost="1" />
|
||||
<WateringCan capacity="10" amountLeft="10" />
|
||||
</GameObject>
|
||||
|
||||
|
@ -11,7 +11,8 @@
|
||||
<Weapon damage="3"
|
||||
critProbability="0.01"
|
||||
critDamage="9"
|
||||
attackDuration="0.4" />
|
||||
attackDuration="0.4"
|
||||
energyCost="1.5" />
|
||||
</GameObject>
|
||||
|
||||
<GameObject name="Level 2 Sword">
|
||||
@ -24,7 +25,8 @@
|
||||
<Weapon damage="6"
|
||||
critProbability="0.01"
|
||||
critDamage="18"
|
||||
attackDuration="0.4" />
|
||||
attackDuration="0.4"
|
||||
energyCost="0.9" />
|
||||
</GameObject>
|
||||
|
||||
</ItemCollection>
|
@ -26,12 +26,10 @@
|
||||
<Transform x="120" y="100" />
|
||||
<Sprite src="sprites/Player.sprite" />
|
||||
<SpriteRenderer />
|
||||
<PlayerMovement />
|
||||
<PlayerInventory capacity="30" />
|
||||
|
||||
<GameObject name="Inventory">
|
||||
<Transform />
|
||||
</GameObject>
|
||||
<Inventory capacity="30" />
|
||||
<Player hp="100" maxHp="100"
|
||||
energy="100" maxEnergy="100"
|
||||
money="50" />
|
||||
</GameObject>
|
||||
|
||||
<!-- Debug object -->
|
||||
|
Reference in New Issue
Block a user