
let tex_system=GetCurrentScriptDirectory~".\..\..\..\ImageData\Tex_System.png";

function EnemyInitialize(let life)
{
	SetX(enemyposx);
	SetY(enemyposy);
	SetAngle(enemyangle);
	SetSpeed(enemyspeed);
	SetLife(life+lifelimit);
	LoadGraphic(tex_enemy);
	
	alternative(GetCommonData("PlayMode"))
	case(MODE_STANDARD){MainThread_Standard;}
	case(MODE_ADVANCED){MainThread_Advanced;}
	case(MODE_UNLIMITED){MainThread_Unlimited;}
	others{}
}


function EnemyBossInitialize
{
	SetX(enemyposx);
	SetY(enemyposy);
	SetAngle(enemyangle);
	SetSpeed(enemyspeed);
	LoadGraphic(tex_enemy);
	LoadGraphic(tex_spellbg);
	LoadGraphic(tex_system);
	SetShotAutoDeleteClip(32,32,32,32);
	
	SetCommonData("BossLifeMax",GetEnemyLife);
	SetCommonData("BossFlg",true);
	
	alternative(GetCommonData("PlayMode"))
	case(MODE_STANDARD){MainThread_Standard;}
	case(MODE_ADVANCED){MainThread_Advanced;}
	case(MODE_UNLIMITED){MainThread_Unlimited;}
	others{}
	if(GetCommonDataDefault("SinglePlayFlg",true)){VanishEnemy;}
}