script_enemy_main
{

	//Oh god it's so nice to be able to use comments again
	let frame = 0;
	
	//DEFINE DEM IMAGES
	let boss = GetCurrentScriptDirectory ~ "c6/enem2.png";
	
    @Initialize
	{
		LoadGraphic(boss);
		
		SetLife(2000);
		SetDamageRate(0, 0);
    }

    @MainLoop
	{
		SetCollisionA(GetX, GetY, 32);
        SetCollisionB(GetX, GetY, 16);
		
		frame++;
		yield;
    }

    @DrawLoop
	{
		SetTexture(boss);
		SetAlpha(255);
		SetColor(255,255,255);
		if(floor(frame/40)%2==1){SetGraphicRect(floor(frame/10)*64, 0, 63+floor(frame/10)*64, 63);}
		else{SetGraphicRect(floor(frame/10)*64, 64, 63+floor(frame/10)*64, 127);}
		DrawGraphic(GetX,GetY);
    }

    @Finalize
	{
    }
	
}