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(500);
		SetDamageRate(150, 50);
		SetTimer(35);
	}
	let frame = rand(0,15);
	@MainLoop {
		SetCollisionA(GetX, GetY, 30);
		SetCollisionB(GetX, GetY, 20);
		frame++;
		if(frame >= 20) {
			let a = rand(0,360);
			loop(20) { CreateShot01(GetX, GetY, 2, a, BLUE04, 10); a+=360/20; }
			frame = 0;
		}
	}
	@DrawLoop {
		SetTexture(fairyImage);
		SetGraphicRect(0, 0, 128, 128);
		SetGraphicScale(1, 1);
		SetGraphicAngle(0, 0, 0);
		SetAlpha(255);
		DrawGraphic(GetX, GetY);
	}
	@Finalize {
	}
}