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

    @Initialize {

	LoadUserShotData(GetCurrentScriptDirectory~".\..\img\shot_All.txt");
	SetShotAutoDeleteClip(16,32,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\wind.png");wait(w);

        LoadGraphic(csd ~ "..\lib/dot_sunnymilk.png");wait(w);
        LoadGraphic(csd ~ "..\lib/dot_sunnymilk2.png");wait(w);
        LoadGraphic(csd ~ "..\lib/dot_aya.png");wait(w);
        LoadGraphic(csd ~ "..\lib/dot_aya2.png");wait(w);

	VanishEnemy;
}

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

}