script_enemy_main
{
    let count=0;
    @Initialize
{
	SetLife(2);
	ascent( let t in 0..8 ) {
		CreateShot01(GetX(),GetY(),3.5,count+t*45,49,0);
	}DeleteEnemyShotInCircle(SHOT,GetX(),GetY(),60);
	SetGraphicRect(0,0,512,512);
}
@MainLoop
{
	SetSpeed(6);
	SetAngle(90+rand(-7,7));
	if (count==1) {
		ascent( let t in 0..8 ) {
			CreateShot01(GetX(),GetY(),2.4,22+count+t*45,49,0);
		}
	}
	if (1.2-0.015*count>=0.06) {
		SetCollisionB(GetX(),GetY(),128-count*1.5);
	}
	if (count>=30&&1.2-0.015*count<=0) {
		VanishEnemy;
	}count++;
}
@DrawLoop
{
	SetRenderState(ADD);
	if (count<30) {
		SetTexture(GetCurrentScriptDirectory~"effect\NuclearRing4.png");
		SetGraphicScale(0.28+count*0.017,0.28+count*0.017);
		DrawGraphic(GetX(),GetY());
	}
	if (count>=30&&1.2-0.015*count>0) {
		SetTexture(GetCurrentScriptDirectory~"effect\NuclearRing4.png");
		SetGraphicScale(1.2-0.015*count,1.2-0.015*count);
		DrawGraphic(GetX(),GetY());
	}
	if (count>=30&&1.2-0.015*count<=0) {
		yield;
	}
}
}
