	#e
	#Title[u]-[l/34<#!߈ˁv]
	#Text[ŏI`m]
	#Image[]
	#ScriptVersion[2]
	#BGM[.\BGM3.mp3]
	#Player[FREE]
	script_enemy_main
	{
		let t=0;
		let c=0;
		let count=0;
		let angle=135;
		let angle02=45;
		let cx=GetCenterX();
		let cy=GetCenterY();
		let mode=0;
		@Initialize
		{
			CutIn(YOUMU, "u]-[l/34<#!߈ˁv", "", 0, 0, 0, 0);
			SetLife(3000);
			SetMovePosition02(cx,cy,60);
			SetTimer(50);
        		SetScore(4000000);
			SetGraphicRect(1,1,40,45);
			LoadGraphic("script\img\2127578.png");
			


		}
			
		@MainLoop
		{
/*---------------------------------------------------------------------------------*/			
			if(t==60)
			{	loop(270){
					CreateShot01(GetX(),GetY(),5,angle,BLUE02,30);
					angle++;
					}
				angle=130;
				t=40;
			}
/*---------------------------------------------------------------------------------*/
			if(mode==0)
			{
				if(c==60)
				{	angle02=GetAngleToPlayer();
						loop(36){
						CreateShot01(GetX(),GetY(),2,angle02,BLUE21,30);
						angle02+=10;
						}
					c=50;
					count=55;
				}
			}
/*---------------------------------------------------------------------------------*/
			if(mode==1)
			{
				if(c==60)
				{	angle02=GetAngleToPlayer();
						loop(36){
						CreateShot01(GetX(),GetY(),2,angle02,BLUE21,30);
						angle02+=10;
						}
					c=50;
				}
				if(count==65)
				{	angle02=GetAngleToPlayer()-5;
						loop(36){
						CreateShot01(GetX(),GetY(),2,angle02,BLUE05,30);
						angle02+=10;
						}
					count=55;
				}
			}
/*---------------------------------------------------------------------------------*/				
			if(GetTimer()==10)
			{
				mode=1;
			}
/*---------------------------------------------------------------------------------*/
				SetCollisionB(GetX(),GetY(),24);
				t++;
				c++;
				count++;
		}

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