#e
#Title[eeXg]
#Text[@_]Qe]
#Image[]
#ScriptVersion[2]
	
script_enemy_main
{
	let count;//eoԊu𐧌䂷邽߂̕ϐ;
	let cx;//ϐcxɐ^񒆂̍W;
	@Initialize
	{
		count=0;//eoԊu𐧌䂷邽߂̕ϐ;
		cx=GetCenterX();//ϐcxɐ^񒆂̍W;
		SetLife(100);//G̃Ct1000
		SetDamageRate(10,0);
		SetGraphicRect(64,1,127,64);//`挳̋`(64,1)-(127,64)ɐݒ
		LoadGraphic("script\img\ExRumia.png");//script\img\ExRumia.jpgeNX`ɓǂ݂
		LoadUserShotData("script\sample_ring\HAL_ring.txt");
		SetMovePosition02(cx,60,60);//W(cx,60)60t[ňړ
		Shot1;
		Shot2;
		Shot3;
		Shot4;
	}
		
	@MainLoop
	{
		yield;
		SetCollisionA(GetX(),GetY(),32);//G̍Wɓ蔻o^
		SetCollisionB(GetX(),GetY(),24);//G̍Wɓ蔻(̓p)o^
		count++;//1t[count1
	}
	task Shot1
	{
		SetShotDirectionType(PLAYER);
		let angle1=0;
		loop{
			CreateShot01(GetX(),GetY(),5,angle1,BLUE23,0);
			angle1+=10;
		loop(4){yield;}
		}
	}
	task Shot2
	{
		SetShotDirectionType(PLAYER);
		let angle2=180;
		loop{
			CreateShot01(GetX(),GetY(),5,angle2,RED23,0);
			angle2+=10;
		loop(4){yield;}
		}
	}
	task Shot3
	{
		SetShotDirectionType(PLAYER);
		let angle3=0;
		loop{
			CreateShot01(GetX(),GetY(),5,angle3,YELLOW23,0);
			angle3-=10;
		loop(4){yield;}
		}
	}
	task Shot4
	{
		SetShotDirectionType(PLAYER);
		let angle4=180;
		loop{
			CreateShot01(GetX(),GetY(),5,angle4,GREEN23,0);
			angle4-=10;
		loop(4){yield;}
		}
	}
	@DrawLoop
	{
		SetTexture("script\img\ExRumia.png");//`挳eNX`ݒ
		DrawGraphic(GetX(),GetY())//G̍WEx[~A`;
	}
	
	@Finalize
	{
		DeleteGraphic("script\img\ExRumia.png");//ǂ݂񂾃eNX`j
	}
}
