
#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 {
	SetCommonData("BossLastAttack",false);
	SetCommonData("STAGE1MIDBOSS",false);
        DeleteGraphic(imgBoss);
    }

    // メインタスク
task TMain 
{
	yield;
	//Lissajous(0,64,255);
	BossShadowAnimation(imgBoss,0,0,250,154);
	AddLife(-GetLife);
	SetCommonData("BOSSDEFEAT",true);
}


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