#Title[チルノ中ボス通常Ｎ]
#Text[]
#Image[]
#BackGround[]
#PlayLevel[]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main
{
	#include_function ".\弾幕集.txt"
	let frame   = 0;

	@Initialize{
	SetX(GetCenterX + 120);
	SetY(GetClipMaxY + 32);
	SetLife(1500);
	SetTimer(29);
	SetDamageRate(100,15);

	LoadGraphic(imgboss1);
	SetTexture(imgboss1);
	SetGraphicRect(0,0,127,127);
	Shot();
	Move();
	}

	@MainLoop{
	SetCollisionA(GetX,GetY,24);
	SetCollisionB(GetX,GetY,24);
	ChackBonus;
	yield;
	}

	@DrawLoop{
	DrawGraphic(GetX,GetY);
	}

	@Finalize{
	DeleteGraphic(imgboss1);
	MasicPointAddNormal(2);
	loop(12){
	let x = GetX + rand(-32,32);
	let y = GetY + rand(-32,32);
	CreateItem(ITEM_SCORE,x,y);
	}
	}

	task Shot(){
	let angle = GetAngleToPlayer;
	loop(80){yield;}
	loop{
	loop(3){
	angle = GetAngleToPlayer;
	CirnoShotA(angle,1);
	loop(40){yield;}
	}
	loop(4){
	loop(3){
	angle = GetAngleToPlayer;
	Allshot(3,angle,18,BLUE01,0);
	loop(15){yield;}
	}
	}
	}
	}


	task Move(){
	let y1 = 120;
	SetMovePosition02(GetCenterX,y1,60);
	loop{yield;}

	}

}