script_enemy_main {
	let csd		=GetCurrentScriptDirectory;
	let shotData	=csd ~ "shot.txt";

    @Initialize {
	SetLife(99999);
	LoadUserShotData(shotData);
	let ef1=6;
	let ef2=rand(0,360);
	let ef3=0;
	let ef4=rand(3,20);
	let ef5=0;
	let ef6=rand(10,20);
	let ef7=1;
	loop(ef1){
		ef(GetX+cos(ef2)*ef3,GetY+sin(ef2)*ef3,ef2,ef5);
		ef2+=ef4;
		ef3+=ef6;
		ef5+=2;
		ef7+=1;
	}
	}

    @MainLoop {
	yield;
	}

	@DrawLoop
	{
	}
	@Finalize{
	//attributeB();
	}

task ef(x,y,angle,delay){
	let c=0;
	let obj_ef=Obj_Create(OBJ_SHOT);
	Obj_SetX(obj_ef,x);
	Obj_SetY(obj_ef,y);
	Obj_SetSpeed(obj_ef,0);
	Obj_SetAngle(obj_ef,angle);
	ObjShot_SetGraphic(obj_ef,255);
	Obj_SetCollisionToPlayer(obj_ef,false);
	ObjShot_SetDelay(obj_ef,delay);
	loop(32){
	c++;
	yield;}
	if(c==32){
	Obj_Delete(obj_ef);
	VanishEnemy;
	}
}

//#include_function ".\zako.txt"
}