Implemented many things. Refactored parsers. Added some behaviors and items. Added weapons.
This commit is contained in:
17
assets/items/Tools.items
Normal file
17
assets/items/Tools.items
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>Player
|
||||
<ItemCollection>
|
||||
|
||||
<GameObject name="Stone pickaxe">
|
||||
<Transform />
|
||||
<SpriteRenderer sprite="sprites/items/StonePickaxe.sprite" />
|
||||
<Item name="Stone pickaxe"
|
||||
description="The most basic type of pickaxe. It can break small stones."
|
||||
level="1" />
|
||||
<Weapon damage="1"
|
||||
critProbability="0"
|
||||
critDamage="0"
|
||||
attackDuration="0.5" />
|
||||
<PickaxeItem />
|
||||
</GameObject>
|
||||
|
||||
</ItemCollection>
|
28
assets/items/Weapons.items
Normal file
28
assets/items/Weapons.items
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ItemCollection>
|
||||
|
||||
<GameObject name="Level 1 Sword">
|
||||
<Transform />
|
||||
<SpriteRenderer sprite="sprites/items/Lvl1Sword.sprite" />
|
||||
<Item name="Level 1 Sword"
|
||||
description="Better than nothing."
|
||||
level="1" />
|
||||
<Weapon damage="3"
|
||||
critProbability="0.01"
|
||||
critDamage="9"
|
||||
attackDuration="0.4" />
|
||||
</GameObject>
|
||||
|
||||
<GameObject name="Level 2 Sword">
|
||||
<Transform />
|
||||
<SpriteRenderer sprite="sprites/items/Lvl2Sword.sprite" />
|
||||
<Item name="Level 2 Sword"
|
||||
description="Better than basic sword."
|
||||
level="2" />
|
||||
<Weapon damage="6"
|
||||
critProbability="0.01"
|
||||
critDamage="18"
|
||||
attackDuration="0.4" />
|
||||
</GameObject>
|
||||
|
||||
</ItemCollection>
|
@ -1,15 +0,0 @@
|
||||
{
|
||||
"name" : "Level 1 Sword",
|
||||
"description" : "Most basic sword.",
|
||||
"enemyDamage" : 3,
|
||||
"attackDuration" : 10,
|
||||
"criticalProbability" : 0.01,
|
||||
|
||||
"level" : 1,
|
||||
|
||||
"tool" : true,
|
||||
"giftable" : false,
|
||||
"sellable" : false,
|
||||
|
||||
"sprite" : "sprites/items/lvl1_sword.sprite"
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"name" : "Stone pickaxe",
|
||||
"description" : "The most basic type of pickaxe. It can break small stones.",
|
||||
"enemyDamage" : 1,
|
||||
"criticalProbability" : 0,
|
||||
|
||||
"level" : 1,
|
||||
|
||||
"tool" : true,
|
||||
"giftable" : false,
|
||||
"sellable" : false,
|
||||
|
||||
"sprite" : "sprites/items/stone_pickaxe.sprite",
|
||||
|
||||
"controller" : "PickaxeItem"
|
||||
}
|
Reference in New Issue
Block a user