	#e
	#Title[HuXƓiCt̃cv]
	#Text[iCtI[]
	#Image[]
	#ScriptVersion[2]
	#BGM[.\BGM3.mp3]
	#Player[FREE]
	script_enemy_main
	{
		let c01=0;
		let c02=0;
		let base=0;
		let base02=0;
		let angle01=90;
		let angle02=90;
		let angle03=base;
		let angle04=base02;
		let gx=GetX();
		let gy=GetY();
		let cx=GetCenterX();
		let cy=GetCenterY();
		let p=0;
		let e=30;
		let s=1;
		@Initialize
		{
			CutIn(YOUMU, "HuXƓiCt̃cv", "", 0, 0, 0, 0);
			SetLife(6000);
			SetMovePosition02(cx,60,60);
			SetTimer(40);
        		SetScore(4000000);
			SetGraphicRect(1,1,48,48);
			LoadGraphic("script\img\2127578.png");
		}
			
		@MainLoop
		{
			
			


			if(c01==180)
			{	
				if(p==2){
					SetMovePosition02(cx,cy-90,60);
					loop(10)
						{
						CreateShot01(GetX()-60,GetY(),3,angle03,BLUE32,30);
						angle03+=36;
						}
					loop(10)
						{
						CreateShot01(GetX()+60,GetY(),3,angle04,BLUE32,30);
						angle04+=36;
						}
					base+=s;
					base02-=s;
					angle03=base;
					angle04=base02;
					s++;
					c01=175;

					}
				if(p==1){	
					SetMovePosition02(cx,60,60);
					loop(5){
						let angle=0;
						while(angle<360)
						{
						let shot=0;
						CreateShotA(shot,GetX(),GetY(),e);
						SetShotDirectionType(ABSOLUTE);
						SetShotDataA(shot,0,5,angle,0,-0.15,1,BLUE32);
						SetShotDirectionType(PLAYER);
						SetShotDataA(shot,60,5,0,0,0,3,BLUE32);
						FireShot(shot);
						angle+=15;
						}
						e+=10;
						}
					e=30;
					c01=30;
					}
				if(p==0){	
					SetMovePosition02(cx,cy-80,60);
					loop(2){			
						CreateShot01(GetX()-40,GetY(),2,angle01,BLUE32,30);
						angle01+=180;
						}
					loop(2){			
						CreateShot01(GetX()+40,GetY(),2,angle02,BLUE32,30);
						angle02+=180;
						}
					angle01+=5;
					angle02-=5;
					c01=179;	
					}
			}	

				SetCollisionA(GetX(),GetY(),32);
				SetCollisionB(GetX(),GetY(),24);
				c01++;
				c02++;
				if(c02==600){p=rand_int(0,2);c02=0;c01=120;}
		}

		@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");
		}
	}
  
