script_enemy_main
{
	let frame=-100;
	#include_function ".\keineanim.txt";
	#include_function ".\spellcard.txt";
task Familiars
{
	ascent(i in 0..20)
	{
	CreateEnemyFromScript("Familiar", GetX+200*cos(i*18), GetY+100*sin(i*18), 0, 0, i);
	}
}
	@Initialize
	{
		SetInvincibility(100);
		SetLife(2000);
		SetDamageRate(70,70);
		SetMovePosition02(GetCenterX,120,20);
		LoadUserShotData(GetCurrentScriptDirectory~"supershot.txt");

		timer;
		SetCommonData("timercount", 1800);
	}
	
	@MainLoop
	{
		SetCollisionA(GetX(),GetY(),24);
		SetCollisionB(GetX(),GetY(),24);
		frame++;
		yield;
	if(frame==0)
	{
		Familiars;
	}
}
	
	@Finalize
	{
	}
	
	@DrawLoop
	{
	anim2;
	}
}

script_enemy Familiar {
	#include_function ".\famanim.txt";
	let frame=-60;
	let angle=GetArgument*18;
	@Initialize
	{
	SetLife(200);
	SetDamageRateEx(70, 30, 30, 0);
}
	@MainLoop
	{
	yield;
	frame++;
	angle+=11;
	if(frame%8==0 && frame>0)
	{
	PlaySE(GetCurrentScriptDirectory~"sound\Shot1.wav");
	CreateShot01(GetX, GetY, 2, angle, 37, 20);
	}
	if(GetKeyState(VK_SLOWMOVE)==KEY_PULL || GetKeyState(VK_SLOWMOVE)==KEY_FREE)
	{
	SetCollisionA(GetX(),GetY(),24);
	}
}
	@DrawLoop
	{
	anim2;
}

}