task Enemy0_1(X,Y,speed,angle,other){	//帺婡慱偄栄嬍
	loop(8){			//other偼夞傞妏搙
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy01.txt",X,Y,speed,angle,other);
		loop(10){yield;}
	}
}

task Enemy1_1(X,speed,other){		//杺曽恮晅帺婡慱偄愒
					//other偼摝偘傞曽岦
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy11.txt",cx+X,cmy-24,speed,90,other);
}

task Enemy1_2(X,Y,speed,angle,Pangle,loops){	//帺婡慱偄愒惵岎屳
	let i=0;
	let other=[1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1];
	loop(loops){
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy12.txt",X,Y,speed,angle,other[i]);
		angle+=Pangle;
		i++;
		loop(5){yield;}
	}	
}

task Enemy1_3(X,Y,speed,angle,loops){	//帺婡慱偄愒惵岎屳
	let i=0;
	let other=[1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1];
	loop(loops){
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy13.txt",X+rand(-60,60),Y+rand(-20,20),speed,angle,other[i]);
		i++;
		loop(8){yield;}
	}	
}

task Enemy1_4(X,Y,speed,angle){	//摿庩3way
	let i=0;
	let other=[1,2,1,2,1,2,1,2,1,2,1,2];
	loop(8){
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy14.txt",cx+X,cy+Y,speed,angle,other[i]);
		i++;
		loop(10){yield;}
	}
}

task Enemy1_5(X,Y,angle,col){	//
	loop(10){
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy15.txt",X,Y,4,angle,col);
		loop(8){yield;}
	}
}

task Enemy2_1(X,speed,loops){//慡曽埵墿抏惵
	let i=0;
	loop(loops){
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy21.txt",cx+X[i],cmy-18,speed[i],0,0);
		i++;
		loop(10){yield;}
	}
}

task Enemy2_2(X,angle){//慡曽埵椢嶪抏亄兛惵
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy22.txt",cx+X,cmy-24,10,90+angle,0);
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy24.txt",cx-X,cmy-24,10,90-angle,0);
}

task Enemy2_3(X,Item){	//慡曽埵怓乆屄惵
		CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy23.txt",cx+X,cmy-24,10,90,1);
}

task effectshot(X,Y,delay,loops){//梔惛敪惗尦僄僼僃僋僩
	loop(loops){
               	CreateShotA(1,X,Y,delay);
               	SetShotDataA(1,0,0,0,0,0,0,1);
               	SetShotKillTime(1,0);
               	FireShot(1);
		loop(5){yield;}
	}
}

task Enemy3_1(X,Y){	//杺曽恮
	CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy31.txt",cx+X,cy+Y,0,90,1);
}
task Enemy3_2(X,Y){	//杺曽恮
	CreateEnemyFromFile(GetCurrentScriptDirectory~"\date\Enemy32.txt",cx+X,cy+Y,0,90,1);
}
