script_enemy_main{
	let count=0;
	let cx=GetCenterX();//STGV[̒SxW擾
	let kedama101=GetCurrentScriptDirectory~"img\Orange.png";
	let shootSE = GetCurrentScriptDirectory~".\SE\shoot13.wav";
	@Initialize
		{
		LoadGraphic(kedama101);
		SetTexture(kedama101);
		SetX(32);
		SetY(80);
		SetSpeed(4);
		SetAngle(0);
		SetScore(800);
		SetLife(20);//Ct50ɐݒ
		SetGraphicRect(1,1,32,32);//`挳`ݒ	
		}
	
		@MainLoop{
			SetCollisionA(GetX(),GetY(),24);//蔻(e)o^
			SetCollisionB(GetX(),GetY(),24);//蔻(̓)o^
			count++;

			if(count==4){
			PlaySE(shootSE);
			CreateShot01(GetX,GetY,6,GetAngleToPlayer-30,RED05,0);
			CreateShot01(GetX,GetY,6,GetAngleToPlayer,RED05,0);
			CreateShot01(GetX,GetY,6,GetAngleToPlayer+30,RED05,0);
			count=0;
			}
			if(GetX>416){
				VanishEnemy();	
			}
		}
		@Finalize{
			if(GetX<417){
			CreateItem(ITEM_SCORE,GetX(),GetY());}
		}
		@DrawLoop
			{//`
			DrawGraphic(GetX(),GetY());
		}
}