Skip to content

Commit

Permalink
Animation markup for the new knight frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettering committed Aug 21, 2017
1 parent 1633332 commit c784cdb
Showing 1 changed file with 90 additions and 22 deletions.
112 changes: 90 additions & 22 deletions data/core/units/humans/Horse_Knight.cfg
Expand Up @@ -44,39 +44,107 @@
image="units/human-loyalists/knight/knight.png:150"
[/frame]
[/movement_anim]
{DEFENSE_ANIM "units/human-loyalists/knight/knight.png" "units/human-loyalists/knight/knight.png" {SOUND_LIST:HORSE_HIT} }

{DEFENSE_ANIM_DIRECTIONAL "units/human-loyalists/knight/knight-se-defend2.png" "units/human-loyalists/knight/knight-se-defend1.png" "units/human-loyalists/knight/knight-ne-defend2.png" "units/human-loyalists/knight/knight-ne-defend1.png" {SOUND_LIST:HORSE_HIT} }

[death]
start_time=0
[if]
direction=sw,s,se
[frame]
image="units/human-loyalists/knight/knight-se-die[1~5].png:100"
[/frame]
[/if]
[else]
direction=nw,n,ne
[frame]
image="units/human-loyalists/knight/knight-ne-die[1~5].png:100"
[/frame]
[/else]
[/death]

{STANDING_ANIM_DIRECTIONAL_6_FRAME "units/human-loyalists/knight/knight"}

{MOVING_ANIM_DIRECTIONAL_8_FRAME "units/human-loyalists/knight/knight"}

[attack_anim]
[filter_attack]
name=lance
[/filter_attack]
start_time=-250
[frame]
image="units/human-loyalists/knight/knight.png:50"

start_time=-400
sound_start_time=-400
offset=0.0~0.3:300,0.3~0.45:210,0.45~0.0:420

[sound_frame]
sound=horse-canter.wav
[/frame]
[/sound_frame]

[if]
direction=n
[frame]
image="units/human-loyalists/knight/knight-n-attack[1~12].png:[100*3,70*9]"
[/frame]
[/if]
[else]
direction=nw,ne
[frame]
image="units/human-loyalists/knight/knight-ne-attack[1~12].png:[100*3,70*9]"
[/frame]
[/else]
[else]
direction=sw,se
[frame]
image="units/human-loyalists/knight/knight-se-attack[1~12].png:[100*3,70*9]"
[/frame]
[/else]
[else]
direction=s
[frame]
image="units/human-loyalists/knight/knight-s-attack[1~12].png:[100*3,70*9]"
[/frame]
[/else]

{SOUND:HIT_AND_MISS spear.ogg {SOUND_LIST:MISS} -200}
[frame]
image="units/human-loyalists/knight/knight.png:350"
[/frame]
[frame]
image="units/human-loyalists/knight/knight.png:50"
[/frame]
[/attack_anim]
[/attack_anim]
[attack_anim]
[filter_attack]
name=sword
[/filter_attack]
start_time=-200
[frame]
image="units/human-loyalists/knight/knight.png:50"

start_time=-400
sound_start_time=-400
offset=0.0~0.3:300,0.3~0.45:210,0.45~0.0:420

[sound_frame]
sound=horse-canter.wav
[/frame]
[/sound_frame]

[if]
direction=n
[frame]
image="units/human-loyalists/knight/knight-n-slash[1~12].png:[100*3,70*9]"
[/frame]
[/if]
[else]
direction=nw,ne
[frame]
image="units/human-loyalists/knight/knight-ne-slash[1~12].png:[100*3,70*9]"
[/frame]
[/else]
[else]
direction=sw,se
[frame]
image="units/human-loyalists/knight/knight-se-slash[1~12].png:[100*3,70*9]"
[/frame]
[/else]
[else]
direction=s
[frame]
image="units/human-loyalists/knight/knight-s-slash[1~12].png:[100*3,70*9]"
[/frame]
[/else]

{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
[frame]
image="units/human-loyalists/knight/knight.png:300"
[/frame]
[frame]
image="units/human-loyalists/knight/knight.png:50"
[/frame]
[/attack_anim]
[/unit_type]

1 comment on commit c784cdb

@CelticMinstrel
Copy link
Member

@CelticMinstrel CelticMinstrel commented on c784cdb Aug 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems kinda weird that this is a separate commit from the images...

Please sign in to comment.