script_enemy_main{
	let count=0;
	let cx=GetCenterX();//STGV[̒SxW擾
	let kedama102=GetCurrentScriptDirectory~"img\Green.png";
	let shootSE = GetCurrentScriptDirectory~".\SE\shoot13.wav";
	@Initialize
		{
		LoadGraphic(kedama102);
		SetTexture(kedama102);
		SetX(416);
		SetY(80);
		SetSpeed(4);
		SetAngle(180);
		SetLife(10);//Ct50ɐݒ
		SetScore(800);
		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,RED05,0);
			count=0;
			}
			if(GetX<32){
				VanishEnemy();	
			}
		}
		@Finalize{
			if(GetX>33){
			CreateItem(ITEM_SCORE,GetX(),GetY());}
		}
		@DrawLoop
			{//`
			DrawGraphic(GetX(),GetY());
		}
}