|
|
|
@ -268,6 +268,73 @@ void sig::Animation::InitializeAnimations(){ |
|
|
|
|
ANIMATION_DATA["TRAPPER_SETTRAP_E"]=pl_trapper_setTrap_e; |
|
|
|
|
ANIMATION_DATA["TRAPPER_SETTRAP_W"]=pl_trapper_setTrap_w; |
|
|
|
|
|
|
|
|
|
//Witch animations
|
|
|
|
|
SetupClassWalkIdleAnimations(GFX["nico-witch.png"],"WITCH"); |
|
|
|
|
Animate2D::FrameSequence pl_wizard_idle_attack_s; |
|
|
|
|
pl_wizard_idle_attack_s.AddFrame({&GFX["nico-witch.png"],{vi2d{4,0}*24,{24,24}}}); |
|
|
|
|
ANIMATION_DATA["WITCH_IDLE_ATTACK_S"]=pl_wizard_idle_attack_s; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_idle_attack_e; |
|
|
|
|
pl_wizard_idle_attack_e.AddFrame({&GFX["nico-witch.png"],{vi2d{4,3}*24,{24,24}}}); |
|
|
|
|
ANIMATION_DATA["WITCH_IDLE_ATTACK_E"]=pl_wizard_idle_attack_e; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_idle_attack_w; |
|
|
|
|
pl_wizard_idle_attack_w.AddFrame({&GFX["nico-witch.png"],{vi2d{4,2}*24,{24,24}}}); |
|
|
|
|
ANIMATION_DATA["WITCH_IDLE_ATTACK_W"]=pl_wizard_idle_attack_w; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_idle_attack_n; |
|
|
|
|
pl_wizard_idle_attack_n.AddFrame({&GFX["nico-witch.png"],{vi2d{4,1}*24,{24,24}}}); |
|
|
|
|
ANIMATION_DATA["WITCH_IDLE_ATTACK_N"]=pl_wizard_idle_attack_n; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_attack_s(0.2f); |
|
|
|
|
for(int i=0;i<3;i++){ |
|
|
|
|
pl_wizard_attack_s.AddFrame({&GFX["nico-witch.png"],{vi2d{4+i,0}*24,{24,24}}}); |
|
|
|
|
if(i==1){ |
|
|
|
|
pl_wizard_attack_s.AddFrame({&GFX["nico-witch.png"],{vi2d{4,0}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_ATTACK_S"]=pl_wizard_attack_s; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_attack_e(0.2f); |
|
|
|
|
for(int i=0;i<3;i++){ |
|
|
|
|
pl_wizard_attack_e.AddFrame({&GFX["nico-witch.png"],{vi2d{4+i,3}*24,{24,24}}}); |
|
|
|
|
if(i==1){ |
|
|
|
|
pl_wizard_attack_e.AddFrame({&GFX["nico-witch.png"],{vi2d{4,3}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_ATTACK_E"]=pl_wizard_attack_e; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_attack_w(0.2f); |
|
|
|
|
for(int i=0;i<3;i++){ |
|
|
|
|
pl_wizard_attack_w.AddFrame({&GFX["nico-witch.png"],{vi2d{4+i,2}*24,{24,24}}}); |
|
|
|
|
if(i==1){ |
|
|
|
|
pl_wizard_attack_w.AddFrame({&GFX["nico-witch.png"],{vi2d{4,2}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_ATTACK_W"]=pl_wizard_attack_w; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_attack_n(0.2f); |
|
|
|
|
for(int i=0;i<3;i++){ |
|
|
|
|
pl_wizard_attack_n.AddFrame({&GFX["nico-witch.png"],{vi2d{4+i,1}*24,{24,24}}}); |
|
|
|
|
if(i==1){ |
|
|
|
|
pl_wizard_attack_n.AddFrame({&GFX["nico-witch.png"],{vi2d{4,1}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_ATTACK_N"]=pl_wizard_attack_n; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_cast_s(0.1f); |
|
|
|
|
for(int i=0;i<2;i++){ |
|
|
|
|
pl_wizard_cast_s.AddFrame({&GFX["nico-witch.png"],{vi2d{7+i,0}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_CAST_S"]=pl_wizard_cast_s; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_cast_e(0.1f); |
|
|
|
|
for(int i=0;i<2;i++){ |
|
|
|
|
pl_wizard_cast_e.AddFrame({&GFX["nico-witch.png"],{vi2d{7+i,3}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_CAST_E"]=pl_wizard_cast_e; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_cast_n(0.1f); |
|
|
|
|
for(int i=0;i<2;i++){ |
|
|
|
|
pl_wizard_cast_n.AddFrame({&GFX["nico-witch.png"],{vi2d{7+i,1}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_CAST_N"]=pl_wizard_cast_n; |
|
|
|
|
Animate2D::FrameSequence pl_wizard_cast_w(0.1f); |
|
|
|
|
for(int i=0;i<2;i++){ |
|
|
|
|
pl_wizard_cast_w.AddFrame({&GFX["nico-witch.png"],{vi2d{7+i,2}*24,{24,24}}}); |
|
|
|
|
} |
|
|
|
|
ANIMATION_DATA["WITCH_CAST_W"]=pl_wizard_cast_w; |
|
|
|
|
|
|
|
|
|
CreateHorizontalAnimationSequence("ground-slam-attack-back.png",5,{64,64},{0.02f,Animate2D::Style::OneShot}); |
|
|
|
|
CreateHorizontalAnimationSequence("ground-slam-attack-front.png",5,{64,64},{0.02f,Animate2D::Style::OneShot}); |
|
|
|
|
CreateHorizontalAnimationSequence("battlecry_effect.png",5,{84,84},{0.02f,Animate2D::Style::OneShot}); |
|
|
|
|