#Title[フランドール通常１]
#Text[]
#Image[]
#BackGround[]
#PlayLevel[]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main
{
#include_function ".\フランドール.txt"
	let frame   = 0;

	@Initialize{
	SetX(GetCenterX);
	SetY(GetClipMinY + 120);
	SetLife(4000);
	SetTimer(69);
	SetDamageRate(150,15);

	LoadGraphic(imgboss);
	SetTexture(imgboss);
	SetGraphicRect(0,0,127,127);
	Shot();
	Move();
	}

	@MainLoop{
	SetCollisionA(GetX,GetY,24);
	SetCollisionB(GetX,GetY,24);

	yield;
	}

	@DrawLoop{
	DrawGraphic(GetX,GetY);
	}

	@Finalize{
	DeleteGraphic(imgboss);
	}

	task Shot(){
	let angle;
	loop(120){yield;}
	loop{
	angle = 90 + rand(-2,2);
	loop(25){yield;}
	Allshot(2.5,angle,36,RED11,0);
	Allshot(2.9,angle+4,36,RED11,0);
	Allshot(3.3,angle+8,36,RED11,0);
	}
	}

	task Move(){
	loop{
	loop(70){yield;}
	SetMovePosition02(GetPlayerX + rand(-20,20),rand(32,128),60);
	}
	}

}