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/effect_tiny.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\Number.png");wait(w);

	LoadGraphic(csd ~ "..\img/effects.png");wait(w);

        LoadGraphic(csd ~ "..\lib/dot_starsapphire.png");wait(w);
        LoadGraphic(csd ~ "..\lib/dot_starsapphire2.png");wait(w);
        LoadGraphic(csd ~ "..\lib/dot_nue.png");wait(w);
        LoadGraphic(csd ~ "..\lib/dot_nue2.png");wait(w);
        LoadGraphic(csd ~ "..\img\UFG.png");wait(w);
	LoadGraphic(csd ~ "../img/ber.png");wait(w);

	VanishEnemy;
}

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

}