script_enemy_main
{
	let frame = 0;
	let bee = GetCurrentScriptDirectory ~ "img\bee.png";
	
	@Initialize
	{
		LoadUserShotData(GetCurrentScriptDirectory ~ "supershot\supershot.txt");
		SetLife(500);
		SetInvincibility(60);
		LoadGraphic(bee);
		SetDamageRate(0,0);
		spread;
	}

	@MainLoop
	{
		SetCollisionA(GetX, GetY, 16);
		SetCollisionB(GetX, GetY, 8);
		frame++;
		yield;
	}
	
	@DrawLoop
	{
		SetTexture(bee);
		SetGraphicRect(0, 0, 110, 110);
		SetGraphicScale(0.5, 0.5);
		DrawGraphic(GetX, GetY);
	}

	@Finalize
	{
		DeleteGraphic(bee);
	}

	function Wait(frames){loop(frames){yield;}}
	
	task spread
	{
		CreateShot01(GetX, GetY, 3.1, 90, 239, 5);
		ascent(j in 1..7)
		{
			ascent(i in 1..30)
			{
				CreateShot02(GetX, GetY, 2, i*360/30+90, 0.02, j/2+2, 237, 5);
			}
			Wait(1);
		}
		Wait(20);
		ascent(j in 1..7)
		{
			ascent(i in 1..30)
			{
				CreateShot02(GetX, GetY, 2, i*360/30+90, 0.02, j/2+2, 237, 5);
			}
			Wait(1);
		}
	}
}