	#東方弾幕風[Stage]
	#Title[東方部分月蝕（試作版）ver0.11]
	#Text[注意！一部の弾幕は非常に重いです！難易度はNormal〜Extraくらいですが、相当初見殺しです。一部の弾幕は画面外から戻ってきます！]
	#BGM[.\BGM\konjaku]
	#Player[FREE]
	#BackGround[User(script\img\ExRumiaBack.png,0,0)]
	#ScriptVersion[2]
	
	script_stage_main
	{
		
		let cx=GetCenterX();//STGシーンの中心x座標を取得
		let imgEnemy=GetCurrentScriptDirectory~"img\Enemy.png";//Enemy.pngへのパス

		let imgLuna=GetCurrentScriptDirectory~"img\ExRumiaBack.png";
		let start=GetCurrentScriptDirectory~"SE\BellA@16.wav";
		let imgfog_alpha_3=GetCurrentScriptDirectory~"img\fog_alpha_3.png";
		let imgfog_alpha_1=GetCurrentScriptDirectory~"img\fog_alpha_1.png";
		let imgfog_alpha_2=GetCurrentScriptDirectory~"img\fog_alpha_2.png";
		let touka=0;
		let Slide=0;
		let LunaStep=0;
		let PLUS=1;
		let titleBack2=GetCurrentScriptDirectory~"img\月蝕2.png";
		let titleBack1=GetCurrentScriptDirectory~"img\月蝕.png";
		let konjaku=GetCurrentScriptDirectory~"BGM\konjaku.mp3";
		let shooting_star=GetCurrentScriptDirectory~"BGM\shooting_star.mp3";
		let Tenmetu=0;	

		SetCommonData("title", 0);		//１でタイトル表示
		SetCommonData( "stageFlag", 0 );

		function Wait(let frame)
			{//待機関数
			loop(frame){yield};
			}



		@Initialize()
		{
			LoadGraphic(imgEnemy);//敵画像読みこみ
			LoadGraphic(imgLuna);
			LoadGraphic(imgfog_alpha_3);
			LoadGraphic(imgfog_alpha_1);
			LoadGraphic(imgfog_alpha_2);
			LoadMusic(shooting_star);
			TitleTask();//タイトルタスク起動
		}

		@MainLoop()
		{	
			if(PLUS==1&&GetPoint<400){SetNormPoint(400);}
			if(PLUS<2&&GetPoint>399)
				{
				ExtendPlayer(1);
				SuperNaturalBorder(720);
				PLUS=2;
				}
			if(GetPoint>=400&&GetPoint<600){SetNormPoint(600);}
			if(PLUS<3&&GetPoint>599)
				{
				ExtendPlayer(1);
				SuperNaturalBorder(720);
				PLUS=3;
				}
				
			if (Slide >= 362)
				 {
				Slide -= 362;
				}
			yield;//毎フレームタスク復帰
		}
		
		@Finalize()
		{
			DeleteGraphic(imgEnemy);
		}

		
		task TitleTask
			{//タイトルタスク
			SetRateScoreSystemEnable(false);
			SetDefaultStatusVisible(false);
			PlayMusic(konjaku);
			SetCommonData("title", 1);


			while(GetCommonData( "stageFlag" ) == 0)
				{
				ForbidBomb(true);
				ForbidShot(true);

				if(GetKeyState(VK_SHOT) == KEY_PUSH)
					{
			
					PlaySE(start);
					SetCommonData( "stageFlag", 1 );
					SetCommonData("title", 0);
					FadeOutMusic(konjaku,10);
					Stage1Task;
					
					}
				SetPlayerX(GetCenterX);
				SetPlayerY(GetCenterY + 150);

				Wait(1);//60フレーム待つ
				}

			}

		task Stage1Task
		{//ステージタスク
			SetRateScoreSystemEnable(true);
			SetDefaultStatusVisible(true);
			ForbidBomb(false);
			ForbidShot(false);
			PlayMusic(shooting_star);

			function WaitForZeroEnemy()
			{//敵数が0になるまで待機する関数
				while(GetEnemyNum() != 0){yield;}
			}

			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);

			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);

			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);

		

			Wait(420);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);

			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);

			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);

			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,200,0,0,0);

			Wait(360);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);

			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);

			Wait(300);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);

			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);
			Wait(30);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy07.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy06.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,200,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,150,0,0,0);

			Wait(360);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);

			Wait(180);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx-140,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx+140,480,0,0,0);
			Wait(90);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx+120,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx-120,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx+120,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx-120,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx+120,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx-120,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx+120,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx-120,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx+120,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx-120,480,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy08.txt",cx+120,480,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy09.txt",cx-120,480,0,0,0);


			Wait(600);//240フレーム待つ
			//リグル出現
			CreateEnemyBossFromFile(GetCurrentScriptDirectory~"リグル連続再生.txt",0,0,0,0,0);
			WaitForZeroEnemy();//敵が消えるまで停止


			Wait(240);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+100,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-100,0,0,0,0);
			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+60,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-60,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+120,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-120,0,0,0,0);
			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+100,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-100,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+150,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-150,0,0,0,0);

			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+10,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+90,0,0,0,0);
			Wait(150);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-10,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-90,0,0,0,0);
			Wait(400);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-60,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-30,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-90,0,0,0,0);
			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+30,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+60,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+90,0,0,0,0);
			Wait(120);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+1,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-1,0,0,0,0);

			Wait(360);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			Wait(20);//60フレーム待つ			
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+100,0,0,0,0);
			Wait(20);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+150,0,0,0,0);
			Wait(20);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-80,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-100,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-120,0,0,0,0);
			Wait(20);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-80,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-30,0,0,0,0);
			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+30,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+80,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+10,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+30,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-30,0,0,0,0);
			Wait(60);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-10,0,0,0,0);
			Wait(500);//60フレーム待つ

			//敵をファイルから読みこんで出現
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx,0,0,0,0);
                        Wait(160);//60フレーム待つ
                        CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx+100,0,0,0,0);
                        Wait(160);//60フレーム待つ
                        CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx-100,0,0,0,0);
			Wait(400);//60フレーム待つ
                        CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx-40,0,0,0,0);
                        CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx+40,0,0,0,0);
			Wait(240);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-80,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+80,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy05.txt",0,100,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-40,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-80,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+80,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+40,0,0,0,0);

			Wait(90);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx,0,0,0,0);
			Wait(180);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx+125,0,0,0,0);
                        CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx+125,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy02.txt",cx-125,0,0,0,0);
                        CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx-125,0,0,0,0);
			Wait(120);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy04.txt",460,100,0,0,0);
			Wait(10);//60フレーム待つ
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx-50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy03.txt",cx+50,0,0,0,0);
			CreateEnemyFromFile(GetCurrentScriptDirectory~"Enemy01.txt",cx,0,0,0,0);

			WaitForZeroEnemy();//敵が消えるまで停止	
			LunaStep=1;
			Wait(600);//240フレーム待つ

			//ExRumia出現
			CreateEnemyBossFromFile(GetCurrentScriptDirectory~"連続再生.txt",cx,0,0,0,0);
			WaitForZeroEnemy();//敵が消えるまで停止
			Wait(360);//60フレーム待つ
			ClearStage();//ステージクリア
		}

		

		@BackGround()
		{

		SetTexture(imgLuna);
		SetGraphicAngle(45, 180, 180);
		SetGraphicRect(1, 1, 384, 448);
		SetAlpha(255);
		SetGraphicScale(1, 1);
		DrawGraphic3D(0, 0, 0);

		
			Slide+=0.75;
			
		if(LunaStep==1&&touka<254)
			{
			touka+=0.6;
			}



		ascent(a in 0..2)
			{
				
				let sy=[0,362];
				let ry=[0,-362];;
				SetTexture(imgfog_alpha_3);
				SetGraphicRect(0,0,512,512);
				SetGraphicScale(1, 1);
				
				SetGraphicAngle(45, 180, 180);
				SetAlpha(255-touka);
				DrawGraphic3D(0,sy[a]-Slide,ry[a]+Slide);
			}

		ascent(a in 0..4)
			{
				let f= 362;
				let sy=[0,f,f*2,f*3,f*4,f*5];
				let ry=[0,-f,-f*2,-f*3,-f*4,-f*5];
				SetTexture(imgfog_alpha_2);
				SetGraphicRect(0,0,512,512);
				SetGraphicScale(1, 1);				
				SetGraphicAngle(45, 180, 180);
				SetAlpha(255-touka);
				DrawGraphic3D(0,sy[a]-Slide*2,ry[a]+Slide*2);
			}


		ascent(a in 0..6)
			{
				let f= 362;
				let sy=[0,f,f*2,f*3,f*4,f*5];
				let ry=[0,-f,-f*2,-f*3,-f*4,-f*5];
				SetTexture(imgfog_alpha_1);
				SetGraphicRect(0,0,512,512);
				SetGraphicScale(1, 1);				
				SetGraphicAngle(45, 180, 180);
				SetAlpha(255-touka);
				DrawGraphic3D(0,sy[a]-Slide*3,ry[a]+Slide*3);
			}

		}
	
	/*	@DrawBottomObject
		{

		}
		
	*/

		@DrawTopObject
		{
		//タイトル表示
		if( GetCommonData( "title" ) == 1)
			{
		
			LoadGraphic(titleBack2);
			SetTexture(titleBack2);
			SetGraphicScale(1.5, 1.01);
			SetGraphicRect(0,0,384,449);
			DrawGraphic(GetCenterX, GetCenterY);



			LoadGraphic(titleBack1);
			SetTexture(titleBack1);
			SetGraphicScale(1.5, 1.01);
			SetGraphicRect(0,0,384,449);
			DrawGraphic(GetCenterX, GetCenterY);



			SetFontColor(200,200,200,100,100,100);
			DrawText("Push Shot Key",GetCenterX-100,GetCenterY + 150,24,255-Tenmetu);
			Tenmetu++;
			if(Tenmetu==120){Tenmetu=0;}

			}
		}



	}
  
