
	#東方弾幕風
	#Title[テスト]
	#Text[通常弾]
	#Image[]
	#ScriptVersion[2]
	#BGM[.\BGM3.mp3]
	#Player[FREE]
	script_enemy_main
	{
		let count=0;
		let angle=95;
		let baseangle=180;
		let angle2=85;
		let baseangle2=0;
		let cx=GetCenterX();
		let cy=GetCenterY();
		@Initialize
		{
			
			SetLife(3000);
			SetMovePosition02(cx,60,60);
			SetTimer(40);
			SetGraphicRect(1,1,48,48);
			LoadGraphic("script\img\2127578.png");
		}
			
		@MainLoop
		{
			
			if(count==60)
			{	let n=rand(5,10);
				let angle=45;
					loop(n){
					CreateShot01(GetX(),GetY(),3,angle,RED02,30);
					angle+=90/(n-1);
						}
				
				count=50;
			}


				SetCollisionA(GetX(),GetY(),32);
				SetCollisionB(GetX(),GetY(),24);
				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");
		}
	}
  
