script_enemy_main {
	let fairyImage = GetCurrentScriptDirectory~"fairy.png";
	let foeImage = GetCurrentScriptDirectory~"foe.png";
	@Initialize {
		if(GetPlayerType==USER_PLAYER) { RaiseError("Why are you using this player","Error"); }
		SetLife(3000);
		SetDamageRate(5, 5);
		SetTimer(35);
	}
	let frame = 0;
	@MainLoop {
		AddBomb(0-GetPlayerBomb);
		SetCollisionA(GetX, GetY, 30);
		SetCollisionB(GetX, GetY, 20);
		if(frame <= 600) { frame++; } else { AddLife(-10000); }
		if(frame % 45 == 0) {
			let a = GetAngleToPlayer;
			loop(11) {
				ascent(i in 0..4) { CreateShot01(GetX, GetY, 7+i, a, RED02+GetArgument[0], 10); }
				a+=360/11;
			}
		}
	}
	@DrawLoop {
		SetTexture(fairyImage);
		SetGraphicRect(0, 0, 128, 128);
		SetGraphicScale(1, 1);
		SetGraphicAngle(0, 0, 0);
		SetAlpha(255);
		DrawGraphic(GetX, GetY);
	}
	@Finalize {
		loop(20) {
			CreateShot01(GetX, GetY, rand(1,2), rand(0,360), WHITE03, 0);
		}
	}
}