	#東方弾幕風
	#Title[取締「低速禁止令」]
	#Text[低速しないほうがいいけど低速しないとキツイよ]
	#Image[]
	#ScriptVersion[2]
	#BGM[.\BGM3.mp3]
	#Player[FREE]
	script_enemy_main
	{
		let c01=0;
		let c02=0;
		let base=0;
		let angle01=90;
		let gx=GetX();
		let gy=GetY();
		let cx=GetCenterX();
		let cy=GetCenterY();
		@Initialize
		{
			CutIn(YOUMU, "取締「低速禁止令」", "", 0, 0, 0, 0);
			SetLife(4000);
			SetMovePosition02(cx,60,60);
			SetTimer(30);
        		SetScore(4000000);
			SetGraphicRect(1,1,48,48);
			LoadGraphic("script\img\2127578.png");
		}
			
		@MainLoop
		{
			
			


			if(c01==300)
			{	
				if(GetPlayerMoveState()==MOVE_SLOW){
					loop(180)
						{
						CreateShot01(GetX(),GetY(),3,angle01,BLUE11,30);
						angle01+=2;
						}
					c01=295;
					}
				if(GetPlayerMoveState()==MOVE_NORMAL){	
					loop(36)
						{
						CreateShot01(GetX(),GetY(),3,angle01,BLUE21,30);
						angle01+=10;
						}
					angle01+=5;
					c01=295;
					}	
			}	
			
			if(c02==300)
			{	let angle02=GetAngleToPlayer();
				loop(5)
					{
					CreateShot01(GetX(),GetY(),2,angle02-20,BLUE03,30);
					angle02+=10;
					}
				c02=60;
			}	
				SetCollisionA(GetX(),GetY(),32);
				SetCollisionB(GetX(),GetY(),24);
				c01++;
				c02++;
		}

		@DrawLoop
		{
			
			SetTexture("script\img\2127578.png");
			DrawGraphic(GetX(),GetY());
		}
		
		@Finalize
		{
			loop(24) {
        		let x = GetX + rand(-64, 64);
       	 		let y = GetY + rand(-64, 64);
        		CreateItem(ITEM_SCORE, x, y);
			}
			DeleteGraphic("script\img\2127578.png");
		}
	}
  
