#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(80,5);

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

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

	yield;
	}

	@DrawLoop{
	DrawGraphic(GetX,GetY);
	}

	@Finalize{
	MasicPointAddNormal(2);
	DeleteGraphic(imgboss1);
	}

	task Shot(){
	let angle = GetAngleToPlayer;
	loop(80){yield;}
	loop{
	loop(3){
	angle = GetAngleToPlayer;
	CirnoShotA(angle,3);
	loop(40){yield;}
	}
	loop(4){
	loop(3){
	angle = GetAngleToPlayer;
	Allshot(3,angle+rand(-4,4),36,BLUE01,0);
	loop(15){yield;}
	}
	}
	}
	}


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

	}

}