#include ".\AnimLib.dnh"
// Michael "derpy" animation sheet
task BossImage(){

      	ObjPrim_SetTexture(Enemy, CSD~"/img/character/boss.png");

	ascent(x in 0..4){ObjAnim_AddFrameA1(Enemy, ANIM_IDLE, 64*x, 0, 64*(x+1)-1, 82);}
	
	ascent(x in 0..4){ObjAnim_AddFrameA1(Enemy, ANIM_MOVE, 64*x, 82, 64*(x+1)-1, 164);}
	descent(x in 0..4){ObjAnim_AddFrameA1(Enemy, ANIM_MOVEEND, 64*x, 82, 64*(x+1)-1, 164);}
	
	ascent(x in 0..4){ObjAnim_AddFrameA1(Enemy, ANIM_ATTACK, 64*x, 164, 64*(x+1)-1, 246);}
	descent(x in 0..4){ObjAnim_AddFrameA1(Enemy, ANIM_ATTACKEND, 64*x, 164, 64*(x+1)-1, 246);}
	
	
	ObjAnim_SetLoopPointA1(Enemy, ANIM_MOVE, 3);
	ObjAnim_SetLoopPointA1(Enemy, ANIM_ATTACK, 2);
	ObjAnim_SetSpeedA1(Enemy, ANIM_IDLE, 7);
	ObjAnim_SetSpeedA1(Enemy, ANIM_MOVE, 6);
	ObjAnim_SetSpeedA1(Enemy, ANIM_ATTACK, 9);
	ObjAnim_StartAnimationA1(Enemy, 5, 1.75);
}
