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:
2016-12-12 23:28:41 +02:00
parent 6fe33a99a8
commit 6a35b11ec2
34 changed files with 885 additions and 573 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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 -->