
#Title[逃亡]
#Text[]
#Image[.]
#BackGround[User]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
    let name    = "逃亡";
let csd = GetCurrentScriptDirectory;
    let imgBoss =csd ~ "..\lib/dot_daiyousei.png"; 
SetRateScoreSystemEnable(false);
    // 初期位置
    let xIni    = GetCenterX;
    let yIni    = GetClipMinY + 128;
	let wIni=30;
    @Initialize {
       LoadUserShotData(GetCurrentScriptDirectory~".\img\shot_All.txt");
        SetLife(1);
        LoadGraphic(imgBoss);
	InitializeAction();
        TMain;
    }

    @MainLoop {
        yield;
    }

    @DrawLoop {
	DrawBoss( imgBoss );
    }

    @Finalize {
        DeleteGraphic(imgBoss);
    }

    // メインタスク
task TMain 
{
	Lissajous(0,64,255);
	BossShadowAnimation(imgBoss,0,255,255,127);
	SetCommonData("BOSSDEFEAT",true);
	standBy;
}

sub standBy//初期位置へ
{
	wait(60);
	SetAction(ACT_MOVE, 60);
	SetMovePosition02(GetCenterX, GetClipMinY-64, wIni);
	wait(60);
	VanishEnemy;
}

#include_function ".\..\txt\data.txt"
#include_function ".\..\lib/lib_anime_Patchouli.txt"
}
