diff --git a/animations/loot/coins100.txt b/animations/loot/coins100.txt new file mode 100644 index 0000000..a907e18 --- /dev/null +++ b/animations/loot/coins100.txt @@ -0,0 +1,13 @@ + +image=images/loot/coins100.png + +[power] +frames=6 +duration=600ms +type=play_once +frame=0,0,0,71,38,52,10,70 +frame=1,0,41,0,44,64,12,85 +frame=2,0,69,64,44,64,13,86 +frame=3,0,0,0,41,71,14,75 +frame=4,0,38,71,31,43,15,36 +frame=5,0,85,0,29,15,15,8 diff --git a/animations/loot/coins25.txt b/animations/loot/coins25.txt new file mode 100644 index 0000000..99fe282 --- /dev/null +++ b/animations/loot/coins25.txt @@ -0,0 +1,13 @@ + +image=images/loot/coins25.png + +[power] +frames=6 +duration=600ms +type=play_once +frame=0,0,41,62,39,52,10,71 +frame=1,0,0,62,41,61,9,85 +frame=2,0,0,0,38,62,9,85 +frame=3,0,38,0,34,62,10,66 +frame=4,0,72,13,23,24,12,18 +frame=5,0,72,0,24,13,13,7 diff --git a/animations/loot/coins5.txt b/animations/loot/coins5.txt new file mode 100644 index 0000000..aa2a656 --- /dev/null +++ b/animations/loot/coins5.txt @@ -0,0 +1,13 @@ + +image=images/loot/coins5.png + +[power] +frames=6 +duration=600ms +type=play_once +frame=0,0,37,56,32,50,7,69 +frame=1,0,0,0,40,56,10,84 +frame=2,0,0,56,37,59,9,82 +frame=3,0,40,0,26,55,8,59 +frame=4,0,37,106,17,11,7,7 +frame=5,0,54,106,17,9,7,5 diff --git a/animations/loot/woods100.txt b/animations/loot/woods100.txt new file mode 100644 index 0000000..86b5094 --- /dev/null +++ b/animations/loot/woods100.txt @@ -0,0 +1,13 @@ + +image=images/loot/woods100.png + +[animation] +frames=6 +duration=600ms +type=play_once +frame=0,0,0,32,32,32,32,32 +frame=1,0,0,32,32,32,32,32 +frame=2,0,0,32,32,32,32,32 +frame=3,0,0,32,32,32,32,32 +frame=4,0,0,32,32,32,32,32 +frame=5,0,0,32,32,32,32,32 \ No newline at end of file diff --git a/animations/loot/woods25.txt b/animations/loot/woods25.txt new file mode 100644 index 0000000..eaadb80 --- /dev/null +++ b/animations/loot/woods25.txt @@ -0,0 +1,13 @@ + +image=images/loot/woods25.png + +[animation] +frames=6 +duration=600ms +type=play_once +frame=0,0,0,32,32,32,32,32 +frame=1,0,0,32,32,32,32,32 +frame=2,0,0,32,32,32,32,32 +frame=3,0,0,32,32,32,32,32 +frame=4,0,0,32,32,32,32,32 +frame=5,0,0,32,32,32,32,32 \ No newline at end of file diff --git a/animations/loot/woods5.txt b/animations/loot/woods5.txt new file mode 100644 index 0000000..b95e593 --- /dev/null +++ b/animations/loot/woods5.txt @@ -0,0 +1,13 @@ + +image=images/loot/woods5.png + +[animation] +frames=6 +duration=600ms +type=play_once +frame=0,0,0,32,32,32,32,32 +frame=1,0,0,32,32,32,32,32 +frame=2,0,0,32,32,32,32,32 +frame=3,0,0,32,32,32,32,32 +frame=4,0,0,32,32,32,32,32 +frame=5,0,0,32,32,32,32,32 \ No newline at end of file diff --git a/animations/tools/axe.txt b/animations/tools/axe.txt new file mode 100644 index 0000000..0803918 --- /dev/null +++ b/animations/tools/axe.txt @@ -0,0 +1,13 @@ + +image=images/loot/battle_axe.png + +[animation] +frames=6 +duration=600ms +type=play_once +frame=0,0,45,54,46,39,15,51 +frame=1,0,45,0,48,54,16,74 +frame=2,0,0,0,45,75,13,105 +frame=3,0,93,0,31,66,4,84 +frame=4,0,91,66,29,35,11,33 +frame=5,0,0,75,31,17,17,8 diff --git a/animations/trees/stump.txt b/animations/trees/stump.txt new file mode 100644 index 0000000..a4ad8fb --- /dev/null +++ b/animations/trees/stump.txt @@ -0,0 +1,40 @@ +image=images/trees/stump.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,32,32,32,32 +frame=0,W,0,0,32,32,32,32 +frame=0,NW,0,0,32,32,32,32 +frame=0,N,0,0,32,32,32,32 +frame=0,NE,0,0,32,32,32,32 +frame=0,E,0,0,32,32,32,32 +frame=0,SE,0,0,32,32,32,32 +frame=0,S,0,0,32,32,32,32 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,32,32,32,32 +frame=0,W,0,0,32,32,32,32 +frame=0,NW,0,0,32,32,32,32 +frame=0,N,0,0,32,32,32,32 +frame=0,NE,0,0,32,32,32,32 +frame=0,E,0,0,32,32,32,32 +frame=0,SE,0,0,32,32,32,32 +frame=0,S,0,0,32,32,32,32 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/changelog.md b/changelog.md index 639887c..5c68855 100644 --- a/changelog.md +++ b/changelog.md @@ -94,4 +94,5 @@ Alpha 0.05 * added tools and money icons * added sounds to the farm map * Removed the ability to create alternative stash. The engine does not allow it -* Started the creation of the village map \ No newline at end of file +* Started the creation of the village map +* the main character can cut trees, using only the axe tool, that drop wood (animations are still missing) \ No newline at end of file diff --git a/enemies/stump1.txt b/enemies/stump1.txt new file mode 100644 index 0000000..514d6a8 --- /dev/null +++ b/enemies/stump1.txt @@ -0,0 +1,30 @@ +name=Stump +level=1 +categories=stump,tree +rarity=common +xp=0 + +defeat_status=cut1-1 + +animations=animations/trees/stump.txt + +suppress_hp=true + +loot=loot/stump-woods.txt + +# combat stats +stat=hp,60 +speed=0 +melee_range=1 +threat_range=16 +turn_delay=400ms +chance_pursue=5 +power=melee,2,100 +cooldown_hit=133ms + +stat=accuracy,100 +stat=avoidance,0 + +stat=dmg_melee_min,0 +stat=dmg_melee_max,0 +cooldown=1s \ No newline at end of file diff --git a/enemies/tree1.txt b/enemies/tree1.txt index eac4e5f..9f57173 100644 --- a/enemies/tree1.txt +++ b/enemies/tree1.txt @@ -1,6 +1,6 @@ name=Tree level=1 -categories=spring-tree1 +categories=spring-tree1,tree rarity=common xp=0 @@ -10,10 +10,10 @@ animations=animations/trees/tree1.txt suppress_hp=true -#loot=currency,100,10,25 +loot=loot/tree-woods.txt # combat stats -stat=hp,50 +stat=hp,120 speed=0 melee_range=1 threat_range=16 diff --git a/engine/classes.txt b/engine/classes.txt index 9620bed..4ec05ef 100644 --- a/engine/classes.txt +++ b/engine/classes.txt @@ -2,9 +2,9 @@ name=Standard description=The majority of this map is farming land, ideal for crops and animals. currency=500 -equipment=2,31 +equipment=2,3,4 powers=10001 -actionbar=1,0,0,0,0,0,0,0,0,0,0,0 +actionbar=10,11,0,0,0,0,0,0,0,0,0,0 hero_options=0,1 [class] diff --git a/images/icons/items.png b/images/icons/items.png index ceed247..0d9f8f8 100644 Binary files a/images/icons/items.png and b/images/icons/items.png differ diff --git a/images/loot/coins100.png b/images/loot/coins100.png new file mode 100644 index 0000000..5bdf469 Binary files /dev/null and b/images/loot/coins100.png differ diff --git a/images/loot/coins25.png b/images/loot/coins25.png new file mode 100644 index 0000000..7cb9569 Binary files /dev/null and b/images/loot/coins25.png differ diff --git a/images/loot/coins5.png b/images/loot/coins5.png new file mode 100644 index 0000000..fedbdf6 Binary files /dev/null and b/images/loot/coins5.png differ diff --git a/images/loot/woods100.png b/images/loot/woods100.png new file mode 100644 index 0000000..4eb5db9 Binary files /dev/null and b/images/loot/woods100.png differ diff --git a/images/loot/woods25.png b/images/loot/woods25.png new file mode 100644 index 0000000..cf396b5 Binary files /dev/null and b/images/loot/woods25.png differ diff --git a/images/loot/woods5.png b/images/loot/woods5.png new file mode 100644 index 0000000..b785180 Binary files /dev/null and b/images/loot/woods5.png differ diff --git a/images/menus/inventory.png b/images/menus/inventory.png index e094248..1d18e61 100644 Binary files a/images/menus/inventory.png and b/images/menus/inventory.png differ diff --git a/images/menus/minimap.png b/images/menus/minimap.png index 86f42fd..5a39554 100644 Binary files a/images/menus/minimap.png and b/images/menus/minimap.png differ diff --git a/images/trees/stump.png b/images/trees/stump.png new file mode 100644 index 0000000..bdef0e4 Binary files /dev/null and b/images/trees/stump.png differ diff --git a/items/items.txt b/items/items.txt index cf1a709..9bf552e 100644 --- a/items/items.txt +++ b/items/items.txt @@ -8,11 +8,14 @@ price=1 price_sell=1 max_quantity=50000 soundfx=soundfx/inventory/inventory_coins.ogg +loot_animation=animations/loot/coins5.txt,0,9 +loot_animation=animations/loot/coins25.txt,10,24 +loot_animation=animations/loot/coins100.txt,25,0 [item] id=2 name=Example Weapon -icon=0 +icon=258 quality=normal level=1 price=100 @@ -20,7 +23,7 @@ item_type=weapon equip_flags=weapon [item] -id=31 +id=3 name=Hoe quality=low item_type=tools @@ -29,4 +32,29 @@ icon=265 soundfx=soundfx/inventory/inventory_metal.ogg gfx=battle_axe loot_animation=animations/tools/hoe.txt -#dmg=melee,5,15 \ No newline at end of file +dmg=melee,1,1 + +[item] +id=4 +name=Axe +quality=low +item_type=tools +equip_flags=axe +icon=257 +soundfx=soundfx/inventory/inventory_metal.ogg +gfx=battle_axe +loot_animation=animations/tools/axe.txt +dmg=melee,12,12 + +[item] +id=5 +name=Woods +icon=268 +quality=normal +price=1 +price_sell=1 +max_quantity=500 +#soundfx=soundfx/inventory/inventory_coins.ogg +loot_animation=animations/loot/woods5.txt,0,9 +loot_animation=animations/loot/woods25.txt,10,24 +loot_animation=animations/loot/woods100.txt,25,0 \ No newline at end of file diff --git a/loot/stump-woods.txt b/loot/stump-woods.txt new file mode 100644 index 0000000..2e4d233 --- /dev/null +++ b/loot/stump-woods.txt @@ -0,0 +1,4 @@ +[loot] +id=5 +chance=100 +quantity=5,7 \ No newline at end of file diff --git a/loot/tree-woods.txt b/loot/tree-woods.txt new file mode 100644 index 0000000..30224c8 --- /dev/null +++ b/loot/tree-woods.txt @@ -0,0 +1,4 @@ +[loot] +id=5 +chance=100 +quantity=13,17 \ No newline at end of file diff --git a/maps/spring-farm.txt b/maps/spring-farm.txt index 9c8b527..f71eb4c 100644 --- a/maps/spring-farm.txt +++ b/maps/spring-farm.txt @@ -690,7 +690,7 @@ location=19,9,1,1 activate=on_trigger hotspot=location mapmod=level 1,19,9,1558 -requires_item=31 +requires_item=3 [event] # change parallax 01 @@ -1077,7 +1077,7 @@ requires_class=Standard show_on_minimap=false [event] -# tree +# tree1 type=event location=19,6,1,1 activate=on_load @@ -1091,7 +1091,7 @@ location=20,9,1,1 activate=on_trigger hotspot=location mapmod=level 1,20,9,1558 -requires_item=31 +requires_item=3 [event] # river sound @@ -1177,3 +1177,13 @@ location=78,36,1,1 activate=on_load soundfx=soundfx/environment/amb_bird_1.ogg +[event] +# stump1 +type=event +location=19,5,1,1 +activate=static +repeat=false +requires_not_status=cut1-1 +requires_status=cut1 +spawn=stump,19,6 + diff --git a/menus/inventory.txt b/menus/inventory.txt index 7525b7e..097eaae 100644 --- a/menus/inventory.txt +++ b/menus/inventory.txt @@ -2,33 +2,35 @@ # the first two values are x,y positions # some items have two more values, width and height -pos=0,-100,351,273 +pos=0,-104,351,273 align=right close=316,11 help=2,2,24,24 # define x,y position, slot type -equipment_slot=16,191,weapon -equipment_slot=16,223,weapon -equipment_slot=16,255,weapon -equipment_slot=112,191,weapon -equipment_slot=112,223,weapon -equipment_slot=112,255,weapon +equipment_slot=13,58,weapon +equipment_slot=13,92,weapon +equipment_slot=13,126,weapon +equipment_slot=13,160,weapon +equipment_slot=135,58,weapon +equipment_slot=135,92,weapon +equipment_slot=135,126,weapon +equipment_slot=135,160,weapon #equipment_slot=160,80,accessory # tools -equipment_slot=65,35,tools -equipment_slot=97,35,tools -equipment_slot=129,35,tools -equipment_slot=161,35,tools -equipment_slot=193,35,tools -equipment_slot=225,35,tools +equipment_slot=39,194,tools +equipment_slot=74,194,tools +equipment_slot=109,194,tools +equipment_slot=39,229,tools +equipment_slot=74,229,tools +equipment_slot=109,229,tools -carried_area=16,80 -carried_cols=9 -carried_rows=3 +carried_area=173,35 +carried_cols=5 +carried_rows=7 label_title=163,13,center,top -currency=190,240,left,top +currency=90,37,center,top diff --git a/menus/minimap.txt b/menus/minimap.txt index 9bc6790..6a1460b 100644 --- a/menus/minimap.txt +++ b/menus/minimap.txt @@ -3,11 +3,11 @@ # text_pos is the position/justification/alignment of the map name # the text can also be hidden with text_pos=hidden -pos=0,-20,136,156 +pos=0,-10,138,156 align=topright background=images/menus/minimap.png -map_pos=6,24,124,130 +map_pos=9,24,124,130 text_pos=68,2,center,top color_enemy=0,0,0,0 \ No newline at end of file diff --git a/powers/powers.txt b/powers/powers.txt index 5782ac2..5365f6d 100644 --- a/powers/powers.txt +++ b/powers/powers.txt @@ -6,7 +6,7 @@ INCLUDE powers/date.txt INCLUDE powers/seasons.txt [power] -id=1 +id=10 name=Hoe type=fixed icon=265 @@ -23,6 +23,27 @@ animation=animations/powers/hoe.txt directional=false cooldown=1s requires_flags=hoe +target_categories=tools + +[power] +id=11 +name=Axe +type=fixed +icon=257 +new_state=instant +face=true +use_hazard=true +aim_assist=true +base_damage=melee +lifespan=1s +speed=12 +radius=1.0 +starting_pos=melee +animation=animations/powers/axe.txt +directional=false +cooldown=1s +requires_flags=axe +target_categories=tree [power] id=2