script_enemy_main {
#include_function ".\lib.txt"
let imgAngle=0;
@Initialize{
    SetLife(10);
    LoadStuff;
	LoadUserShotData(GetCurrentScriptDirectory~"Shot.txt");
	MainTask;
	}
@MainLoop{
	imgAngle=GetAngleToPlayer;
    yield;
	}
@DrawLoop{
    SetAlpha(255);
	SetColor(255,255,255);
	SetGraphicAngle(0,0,imgAngle);
	SetTexture(ByakuFam);
	SetGraphicRect(0,0,71,80);
	DrawGraphic(GetX,GetY);
	}
@Finalize{
	DeleteStuff;
	}
task MainTask{
	let angle =90;
	Concentration01(60);
	Wait(60);
	loop{
		ascent (i in 0..4){
			CreateShot01(GetX, GetY, 1+i, angle, 147, 0);
			}
		angle+=(10+rand(0,10))*GetArgument;
		Wait(10);
		}
	}
}