script_enemy_main
{//画像読み込み用ダミー敵
	let cmx=GetClipMinX;//画面X最小
	let cmX=GetClipMaxX;//画面X最大
	let cmy=GetClipMinY;//画面Y最小
	let cmY=GetClipMaxY;//画面Y最大
	let Enemy0 = GetCurrentScriptDirectory~"img\Enemy\other.png";
	let Enemy1 = GetCurrentScriptDirectory~"img\Enemy\zako_red.png";
	let Enemy2 = GetCurrentScriptDirectory~"img\Enemy\zako_blue.png";
	let Enemy3 = GetCurrentScriptDirectory~"img\Enemy\zako_green.png";
	let Magic  = GetCurrentScriptDirectory~"img\Enemy\circle_s.png";
	let BOSS11	=GetCurrentScriptDirectory~"img\Boss\dot_sunnymilk.png";//ボス
	let BOSS12	=GetCurrentScriptDirectory~"img\Boss\dot_lunachild.png";//ボス
	let BOSS13	=GetCurrentScriptDirectory~"img\Boss\dot_starsapphire.png";//ボス
	let familiar	=GetCurrentScriptDirectory~"img\Enemy\familiar.png";//使い魔
	let Item  	=GetCurrentScriptDirectory~"\img\effect_tiny.png";
	let imgSpell	=GetCurrentScriptDirectory~"\img\Spell.png";//スペル
	let imgScore	=GetCurrentScriptDirectory~"\img\imgScore.png";//スコア
	let SpellBouns	=GetCurrentScriptDirectory~"\img\imgSpellBouns.png";//スコア
	let Sakura	=GetCurrentScriptDirectory~"\img\Sakurashot.png";//桜
	let imgHoutou_Beam_White = [GetCurrentScriptDirectory ~ "img\Houtou2_Beam_alpha.png",
								GetCurrentScriptDirectory ~ "img\Houtou2_Beam_add.png"];

	let imgHoutou_Beam_Black = [GetCurrentScriptDirectory ~ "img\Houtou2_Beam_alpha_B.png",
								GetCurrentScriptDirectory ~ "img\Houtou2_Beam_subtract.png"];

	let imgHoutou_Fire_White = GetCurrentScriptDirectory ~ "img\Houtou2_Fire_add.png";
	let imgHoutou_Fire_Black = GetCurrentScriptDirectory ~ "img\Houtou2_Fire_subtract.png";


	LoadUserShotData(GetCurrentScriptDirectory ~ "img\data_usershot.txt");
	@Initialize
	{
                SetScore(10);
		SetLife(10);
		LoadGraphic(Enemy0);
		LoadGraphic(Enemy1);
		LoadGraphic(Enemy2);
		LoadGraphic(Enemy3);
		LoadGraphic(Magic);
		LoadGraphic(BOSS11);
		LoadGraphic(BOSS12);
		LoadGraphic(BOSS13);
		LoadGraphic(familiar);
		LoadGraphic(Item);
		LoadGraphic(imgSpell);
		LoadGraphic(imgScore);
		LoadGraphic(SpellBouns);
		LoadGraphic(Sakura);
		ascent(i in 0..2) {
			LoadGraphic(imgHoutou_Beam_White[i]);
			LoadGraphic(imgHoutou_Beam_Black[i]);
		}
		LoadGraphic(imgHoutou_Fire_White);
		LoadGraphic(imgHoutou_Fire_Black);

	}
	
	@MainLoop
	{
                if(GetY<cmy-32||GetY>cmY+32||GetX<cmx-32||GetX>cmX+32){VanishEnemy();}
	}
	

	@Finalize
	{

	}
	
	@DrawLoop
	{//描画

	}
}