//画像--------------------------------------------------------------
let LoadingG	=GetCurrentScriptDirectory~"\date\img\Back\Loading.png";//ロード
let StageName	=GetCurrentScriptDirectory~"\date\img\StageName.png";//ステージタイトル
let Title	=GetCurrentScriptDirectory~"\date\img\Title.png";//タイトル
let imgBase	=GetCurrentScriptDirectory~"\date\img\Back\05.png";//枠

let effect_tiny	=GetCurrentScriptDirectory~"\date\img\effect_tiny.png";//スコアなど
let imgScore	=GetCurrentScriptDirectory~"\date\img\imgScore.png";//スコアなど
let imgSpellBouns=GetCurrentScriptDirectory~"\date\img\imgSpellBouns.png";//スコアなど
let Result	=GetCurrentScriptDirectory~"\date\img\Result.png";//リザルト

let BOSS01	=GetCurrentScriptDirectory~"\date\img\Boss\dot_daiyousei.png";//中ボス

let Bg01	=GetCurrentScriptDirectory~"\date\img\Back\back05_06.png";//道中前半(湖)
let Bg02	=GetCurrentScriptDirectory~"\date\img\Back\060627-01.png";
let Bg03	=GetCurrentScriptDirectory~"\date\img\Back\back08_03.png";//中ボス背景
let Bg04	=GetCurrentScriptDirectory~"\date\img\Back\060627-04.png";//ボス背景
let Bg11	=GetCurrentScriptDirectory~"\date\img\Back\sky.png";//道中中盤(空)

let Bg21	=GetCurrentScriptDirectory~"\date\img\Back\back_01_03.png";//道中最後岩肌
let Bg22	=GetCurrentScriptDirectory~"\date\img\Back\01.png";//道中最後森
let Sakura	=GetCurrentScriptDirectory~"\date\img\Sakurashot.png";//桜

let Kumo01	=GetCurrentScriptDirectory~"\date\img\Back\fog_alpha_1.png";//雲
let Kumo02	=GetCurrentScriptDirectory~"\date\img\Back\fog_normal_1.png";//雲
LoadGraphic(LoadingG);
//音----------------------------------------------------------------------
let Music01=GetCurrentScriptDirectory~"\date\bgm\01.wav";
let Music02=GetCurrentScriptDirectory~"\date\bgm\02.wav";

let arrow01	=GetCurrentScriptDirectory~"\date\SE\arrow01.wav";
let sha00	=GetCurrentScriptDirectory~"\date\SE\sha00.wav";
let shoot13	=GetCurrentScriptDirectory~"\date\SE\shoot13.wav";
let warp02	=GetCurrentScriptDirectory~"\date\SE\warp02.wav";
let power33	=GetCurrentScriptDirectory~"\date\SE\power33.wav";
let bell03	=GetCurrentScriptDirectory~"\date\SE\bell03.wav";
let sha04	=GetCurrentScriptDirectory~"\date\SE\sha04.wav";
let seScore	="seScore.wav";
let seUseSpellCard	="seUseSpellCard.wav";
let seGetSpellCardBonus	="seGetSpellCardBonus.wav";
let Hit		=GetCurrentScriptDirectory~"\date\SE\clap00.wav";
let count_a	=GetCurrentScriptDirectory~"\date\SE\cursor15_a.wav";
let count_b	=GetCurrentScriptDirectory~"\date\SE\cursor15_b.wav";
let Lazer1	=GetCurrentScriptDirectory~"\date\SE\byoro07.wav";
let Lazer2	=GetCurrentScriptDirectory~"\date\SE\tm2_gun000.mp3";
let Lazer3	=GetCurrentScriptDirectory~"\date\SE\gun10.wav";

task Loadtask{
	LoadGraphic(Title);
	LoadGraphic(StageName);
	LoadGraphic(imgBase);
	LoadGraphic(effect_tiny);
	LoadGraphic(imgScore);
	LoadGraphic(imgSpellBouns);
	LoadGraphic(Result);

	LoadGraphic(BOSS01);
	LoadGraphic(Bg01);
	LoadGraphic(Bg02);
	LoadGraphic(Bg03);
	LoadGraphic(Bg04);
	LoadGraphic(Bg11);
	LoadGraphic(Bg21);
	LoadGraphic(Bg22);
	LoadGraphic(Sakura);
	LoadGraphic(Kumo01);
	LoadGraphic(Kumo02);
	
	LoadMusic(Music01);
	LoadMusic(Music02);
	LoadSE(arrow01);
	LoadSE(sha00);
	LoadSE(shoot13);
	LoadSE(warp02);
	LoadSE(power33);
	LoadSE(bell03);
	LoadSE(sha04);
	LoadSE(seScore);
	LoadSE(seUseSpellCard);
	LoadSE(seGetSpellCardBonus);
	LoadSE(Hit);
	LoadSE(count_a);
	LoadSE(count_b);
	LoadSE(Lazer1);
	LoadSE(Lazer2);


	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy01.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy11.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy12.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy13.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy14.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy15.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy21.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy22.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy23.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy24.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy31.txt");
	CompileEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy32.txt");
}

//いろいろ削除--------------------------------------------------------
function Delete_A{
	DeleteGraphic(LoadingG);
	DeleteGraphic(Title);
	DeleteGraphic(imgBase);
	DeleteGraphic(effect_tiny);
	DeleteGraphic(imgScore);

	DeleteGraphic(BOSS01);
	DeleteGraphic(Bg01);
	DeleteGraphic(Bg02);
	DeleteGraphic(Bg03);
	DeleteGraphic(Bg04);
	DeleteGraphic(Bg11);
	DeleteGraphic(Bg21);
	DeleteGraphic(Bg22);
	DeleteGraphic(Sakura);
	DeleteGraphic(Kumo01);
	DeleteGraphic(Kumo02);

	DeleteMusic(Music01);
	DeleteMusic(Music02);
	DeleteSE(arrow01);
	DeleteSE(sha00);
	DeleteSE(shoot13);
	DeleteSE(warp02);
	DeleteSE(power33);
	DeleteSE(bell03);
	DeleteSE(sha04);
	DeleteSE(seScore);
	DeleteSE(seUseSpellCard);
	DeleteSE(seGetSpellCardBonus);
	DeleteSE(Hit);
	DeleteSE(count_a);
	DeleteSE(count_b);
	DeleteSE(Lazer1);
	DeleteSE(Lazer2);

}