//g
script_enemy_main
{
	let count=0;
	@Initialize
	{
		SetLife(128);
		SetAngle(rand(0,360));
		SetDamageRate(100,2);
	}
	@MainLoop
	{
		if (count==0) {
			SetColor(255,0,0);
			Concentration01(60);
		}
		if (count>60) {
			SetCollisionA(GetX(),GetY(),20);
			SetCollisionB(GetX(),GetY(),20);
		}
		DeleteEnemyShotInCircle(SHOT,GetX(),GetY(),30);
		if (count>180) {
			SetSpeed((count-180)/180);
		}
		if (GetX<=0|| GetX>=440||GetY<=-16||GetY>=480) {
			VanishEnemy;
		}
		count++;

	}
	@DrawLoop
	{
		SetTexture(GetCurrentScriptDirectory~"shot_all.png");
		if (count>=0&&count<64) {
			SetColor((count)*4,(count)*4,(count)*4);
		}
		if (count>=64) {
			SetColor(255,255,255);
		}
		SetRenderState(ADD);
		SetGraphicRect(320, 0, 384, 64);
		SetGraphicAngle(0,0,count*12);
		SetGraphicScale(1,1);
		DrawGraphic(GetX(),GetY());
	}
}