Implemented hoe

This commit is contained in:
2016-12-02 22:48:37 +02:00
parent 33de4a8d1f
commit 91c0da855b
14 changed files with 174 additions and 53 deletions

View File

@ -1,6 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>Player
<?xml version="1.0" encoding="utf-8" ?>
<ItemCollection>
<GameObject name="Stone hoe">
<Transform />
<Sprite src="sprites/items/HoeStone.sprite" />
<SpriteRenderer />
<Item name="Stone pickaxe"
description="The most basic type of pickaxe. It can break small stones."
level="1" />
<Weapon damage="0.5"
critProbability="0"
critDamage="0"
attackDuration="0.2" />
<Hoe />
</GameObject>
<!--
<GameObject name="Stone pickaxe">
<Transform />
<SpriteRenderer sprite="sprites/items/StonePickaxe.sprite" />
@ -13,5 +28,5 @@
attackDuration="0.5" />
<PickaxeItem />
</GameObject>
-->
</ItemCollection>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<Sprite name="StoneHoe"
anchorX="0" anchorY="0.1">
<State name="Normal">
<Frame tileSet="sprites/items/hoe.png" cell="0" w="1" h="1" duration="1" />
</State>
<State name="Attack">
<Frame tileSet="sprites/items/hoe.png" cell="1" w="1" h="1" duration="1" />
</State>
</Sprite>

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B