script_enemy_main
{
	let frame=-200;
	#include_function ".\aliceanim.txt";
	#include_function ".\spellcard.txt";
task Dolls(type)
{
	if(type==1)
	{
	ascent(i in 0..24)
	{
	CreateEnemyFromScript("Doll", GetX+75*cos(150-i*15), GetY+75*sin(150-i*15), 0, 0, [0, 1]);
	loop(2){yield;}
	}
	loop(30){yield;}
	Dolls(2);
	}
	if(type==2)
	{
	ascent(i in 0..24)
	{
	CreateEnemyFromScript("Doll", GetX+75*cos(30+i*15), GetY+75*sin(30+i*15), 0, 0, [5, -1]);
	loop(2){yield;}
	}
	loop(30){yield;}
	Dolls(1);
	}
}
	
	@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)
	{
		Dolls(1);
	}
}
	
	@Finalize
	{
	}
	
	@DrawLoop
	{
	animation;
	}
}

script_enemy Doll {
	#include_function ".\dollanim.txt";
	let frame=0;
	let angle=0;
	@Initialize
	{
	SetLife(200);
}
	@MainLoop
	{
	yield;
	frame++;
	if(frame==10)
	{
	PlaySE(GetCurrentScriptDirectory~"sound\Shot1.wav");
	ascent(i in 0..30)
	{
	CreateShotA(1, GetX+20*cos(i*12), GetY+20*sin(i*12), 10);
	SetShotDirectionType(PLAYER);
	SetShotDataA(1, 0, 1, 0, 0, 0, 0, 47+GetArgument[0]);
	SetShotDirectionType(ABSOLUTE);
	SetShotDataA(1, 30, 1, NULL, i/3.75*GetArgument[1], 0.02, 3, 47+GetArgument[0]);
	SetShotDataA(1, 150, NULL, NULL, 0, 0, 0, 47+GetArgument[0]);
	FireShot(1);
	}
	}
	if(frame==40)
	{
	PlaySE(GetCurrentScriptDirectory~"sound\BulletWave.wav");
	VanishEnemy;
	}
}
	@DrawLoop
	{
	anim2;
}

}