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

    @MainLoop {
        yield;
    }

    @DrawLoop {
	DrawBoss( imgBoss );
    }

    @Finalize {
	SetCommonData("BossLastAttack",false);

    }

    // メインタスク
task TMain 
{
	yield;
	SetCommonData("BurstStop",true);
	//Lissajous(0,64,255);
	BossShadowAnimation(imgBoss2,0,148,0,211);
	wait(185);
	SetCommonData("BOSSDEFEAT",true);
	VanishEnemy;
}


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