Refactored sprite & transform. Replaced distance with collider when picking objects up.

This commit is contained in:
2016-12-15 22:52:36 +02:00
parent ddae4934ef
commit 42f0d4125b
20 changed files with 273 additions and 208 deletions

View File

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

View File

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

View File

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

View File

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