
#Title[逃亡]
#Text[]
#Image[.]
#BackGround[User]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let csd = GetCurrentScriptDirectory;
    let imgBoss =csd ~ "..\lib/dot_alice.png"; 
    // 初期位置
    let xIni    = GetCenterX;
    let yIni    = GetClipMinY + 128;
	let wIni=30;
    @Initialize {
	SetCommonData("NoCollision",true);
	SetX(GetCommonDataDefault("BossX",0));
	SetY(GetCommonDataDefault("BossY",0));
       LoadUserShotData(GetCurrentScriptDirectory~".\img\shot_All.txt");
        SetLife(1);
	InitializeAction();
        TMain;
    }

    @MainLoop {
        yield;
    }

    @DrawLoop {
	DrawBoss( imgBoss );
    }

    @Finalize {
	SetCommonData("NoCollision",false);
	SetCommonData("BossLastAttack",false);
	SetCommonData("STAGE5BOSS",false);
    }

    // メインタスク
task TMain 
{
	yield;
	SetCommonData("BurstStop",true);
	BossShadowAnimation(imgBoss2,0,255,255,0);
	wait(510+30);
	SetCommonData("BOSSDEFEAT",true);
	VanishEnemy;
}


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