@ -270,70 +270,70 @@ void sig::Animation::InitializeAnimations(){
//Witch animations
//Witch animations
SetupClassWalkIdleAnimations ( GFX [ " nico-witch.png " ] , " WITCH " ) ;
SetupClassWalkIdleAnimations ( GFX [ " nico-witch.png " ] , " WITCH " ) ;
Animate2D : : FrameSequence pl_wizard _idle_attack_s ;
Animate2D : : FrameSequence pl_witch _idle_attack_s ;
pl_wizard _idle_attack_s . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 0 } * 24 , { 24 , 24 } } } ) ;
pl_witch _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 ;
ANIMATION_DATA [ " WITCH_IDLE_ATTACK_S " ] = pl_witch _idle_attack_s ;
Animate2D : : FrameSequence pl_wizard _idle_attack_e ;
Animate2D : : FrameSequence pl_witch _idle_attack_e ;
pl_wizard _idle_attack_e . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 3 } * 24 , { 24 , 24 } } } ) ;
pl_witch _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 ;
ANIMATION_DATA [ " WITCH_IDLE_ATTACK_E " ] = pl_witch _idle_attack_e ;
Animate2D : : FrameSequence pl_wizard _idle_attack_w ;
Animate2D : : FrameSequence pl_witch _idle_attack_w ;
pl_wizard _idle_attack_w . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 2 } * 24 , { 24 , 24 } } } ) ;
pl_witch _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 ;
ANIMATION_DATA [ " WITCH_IDLE_ATTACK_W " ] = pl_witch _idle_attack_w ;
Animate2D : : FrameSequence pl_wizard _idle_attack_n ;
Animate2D : : FrameSequence pl_witch _idle_attack_n ;
pl_wizard _idle_attack_n . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 1 } * 24 , { 24 , 24 } } } ) ;
pl_witch _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 ;
ANIMATION_DATA [ " WITCH_IDLE_ATTACK_N " ] = pl_witch _idle_attack_n ;
Animate2D : : FrameSequence pl_wizard _attack_s ( 0.2f ) ;
Animate2D : : FrameSequence pl_witch _attack_s ( 0.2f ) ;
for ( int i = 0 ; i < 3 ; i + + ) {
for ( int i = 0 ; i < 3 ; i + + ) {
pl_wizard _attack_s . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 0 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_s . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 0 } * 24 , { 24 , 24 } } } ) ;
if ( i = = 1 ) {
if ( i = = 1 ) {
pl_wizard _attack_s . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 0 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_s . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 0 } * 24 , { 24 , 24 } } } ) ;
}
}
}
}
ANIMATION_DATA [ " WITCH_ATTACK_S " ] = pl_wizard _attack_s ;
ANIMATION_DATA [ " WITCH_ATTACK_S " ] = pl_witch _attack_s ;
Animate2D : : FrameSequence pl_wizard _attack_e ( 0.2f ) ;
Animate2D : : FrameSequence pl_witch _attack_e ( 0.2f ) ;
for ( int i = 0 ; i < 3 ; i + + ) {
for ( int i = 0 ; i < 3 ; i + + ) {
pl_wizard _attack_e . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 3 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_e . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 3 } * 24 , { 24 , 24 } } } ) ;
if ( i = = 1 ) {
if ( i = = 1 ) {
pl_wizard _attack_e . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 3 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_e . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 3 } * 24 , { 24 , 24 } } } ) ;
}
}
}
}
ANIMATION_DATA [ " WITCH_ATTACK_E " ] = pl_wizard _attack_e ;
ANIMATION_DATA [ " WITCH_ATTACK_E " ] = pl_witch _attack_e ;
Animate2D : : FrameSequence pl_wizard _attack_w ( 0.2f ) ;
Animate2D : : FrameSequence pl_witch _attack_w ( 0.2f ) ;
for ( int i = 0 ; i < 3 ; i + + ) {
for ( int i = 0 ; i < 3 ; i + + ) {
pl_wizard _attack_w . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 2 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_w . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 2 } * 24 , { 24 , 24 } } } ) ;
if ( i = = 1 ) {
if ( i = = 1 ) {
pl_wizard _attack_w . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 2 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_w . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 2 } * 24 , { 24 , 24 } } } ) ;
}
}
}
}
ANIMATION_DATA [ " WITCH_ATTACK_W " ] = pl_wizard _attack_w ;
ANIMATION_DATA [ " WITCH_ATTACK_W " ] = pl_witch _attack_w ;
Animate2D : : FrameSequence pl_wizard _attack_n ( 0.2f ) ;
Animate2D : : FrameSequence pl_witch _attack_n ( 0.2f ) ;
for ( int i = 0 ; i < 3 ; i + + ) {
for ( int i = 0 ; i < 3 ; i + + ) {
pl_wizard _attack_n . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 1 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_n . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 + i , 1 } * 24 , { 24 , 24 } } } ) ;
if ( i = = 1 ) {
if ( i = = 1 ) {
pl_wizard _attack_n . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 1 } * 24 , { 24 , 24 } } } ) ;
pl_witch _attack_n . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 4 , 1 } * 24 , { 24 , 24 } } } ) ;
}
}
}
}
ANIMATION_DATA [ " WITCH_ATTACK_N " ] = pl_wizard _attack_n ;
ANIMATION_DATA [ " WITCH_ATTACK_N " ] = pl_witch _attack_n ;
Animate2D : : FrameSequence pl_wizard _cast_s ( 0.1f ) ;
Animate2D : : FrameSequence pl_witch _cast_s ( 0.1f ) ;
for ( int i = 0 ; i < 2 ; i + + ) {
for ( int i = 0 ; i < 2 ; i + + ) {
pl_wizard _cast_s . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 0 } * 24 , { 24 , 24 } } } ) ;
pl_witch _cast_s . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 0 } * 24 , { 24 , 24 } } } ) ;
}
}
ANIMATION_DATA [ " WITCH_CAST_S " ] = pl_wizard _cast_s ;
ANIMATION_DATA [ " WITCH_CAST_S " ] = pl_witch _cast_s ;
Animate2D : : FrameSequence pl_wizard _cast_e ( 0.1f ) ;
Animate2D : : FrameSequence pl_witch _cast_e ( 0.1f ) ;
for ( int i = 0 ; i < 2 ; i + + ) {
for ( int i = 0 ; i < 2 ; i + + ) {
pl_wizard _cast_e . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 3 } * 24 , { 24 , 24 } } } ) ;
pl_witch _cast_e . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 3 } * 24 , { 24 , 24 } } } ) ;
}
}
ANIMATION_DATA [ " WITCH_CAST_E " ] = pl_wizard _cast_e ;
ANIMATION_DATA [ " WITCH_CAST_E " ] = pl_witch _cast_e ;
Animate2D : : FrameSequence pl_wizard _cast_n ( 0.1f ) ;
Animate2D : : FrameSequence pl_witch _cast_n ( 0.1f ) ;
for ( int i = 0 ; i < 2 ; i + + ) {
for ( int i = 0 ; i < 2 ; i + + ) {
pl_wizard _cast_n . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 1 } * 24 , { 24 , 24 } } } ) ;
pl_witch _cast_n . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 1 } * 24 , { 24 , 24 } } } ) ;
}
}
ANIMATION_DATA [ " WITCH_CAST_N " ] = pl_wizard _cast_n ;
ANIMATION_DATA [ " WITCH_CAST_N " ] = pl_witch _cast_n ;
Animate2D : : FrameSequence pl_wizard _cast_w ( 0.1f ) ;
Animate2D : : FrameSequence pl_witch _cast_w ( 0.1f ) ;
for ( int i = 0 ; i < 2 ; i + + ) {
for ( int i = 0 ; i < 2 ; i + + ) {
pl_wizard _cast_w . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 2 } * 24 , { 24 , 24 } } } ) ;
pl_witch _cast_w . AddFrame ( { & GFX [ " nico-witch.png " ] , { vi2d { 7 + i , 2 } * 24 , { 24 , 24 } } } ) ;
}
}
ANIMATION_DATA [ " WITCH_CAST_W " ] = pl_wizard _cast_w ;
ANIMATION_DATA [ " WITCH_CAST_W " ] = pl_witch _cast_w ;
CreateHorizontalAnimationSequence ( " ground-slam-attack-back.png " , 5 , { 64 , 64 } , { 0.02f , Animate2D : : Style : : OneShot } ) ;
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 ( " ground-slam-attack-front.png " , 5 , { 64 , 64 } , { 0.02f , Animate2D : : Style : : OneShot } ) ;