script_enemy_main
{
        let csd     = GetCurrentScriptDirectory;
	let w=3;

    @Initialize {

	LoadUserShotData(GetCurrentScriptDirectory~".\..\img\shot_All.txt");
	SetShotAutoDeleteClip(16,16,16,32);
        SetLife(10);

	TLoad;

	}

@MainLoop
{
	yield;
}

task TLoad
{
	if(GetArgument==1){w=0;}
	LoadGraphic(csd~"..\lib\fairy_red.png");wait(w);
	LoadGraphic(csd~"..\img\circle.png");wait(w);
	LoadGraphic(csd~"..\img\ber.png");wait(w);
	LoadGraphic(csd~"..\img\CircleEffect.png");wait(w);
	LoadGraphic(csd~"..\img\Light.png");wait(w);
	LoadGraphic(csd~"..\img\Light2.png");wait(w);
	LoadGraphic(csd~"..\img\Light3.png");wait(w);
	LoadGraphic(csd~"..\img\SquareLine.png");wait(w);
	LoadGraphic(csd~"..\img\Number.png");wait(w);
	LoadGraphic(csd~"..\img\effects.png");wait(w);

	LoadGraphic(csd ~ "..\lib/dot_lunachild.png");wait(w);
	LoadGraphic(csd ~ "..\lib/dot_lunachild2.png");wait(w);
	LoadGraphic(csd ~ "..\lib/dot_mokou.png");wait(w);
	LoadGraphic(csd ~ "..\lib/dot_mokou2.png");wait(w);
	LoadGraphic(csd~"..\img\!.png");wait(w);
	LoadGraphic(csd~"..\img/Magic.png");wait(w);

	VanishEnemy;
}

function wait(i)
{
if(i>0)
{
loop(i){yield;}
}
}

}
