script_enemy_main
{
    let count=0;
    let N15=0;
    let cx=GetCenterX();
    @Initialize
{
	SetLife(2200);
	SetTimer(33);
	SetInvincibility(60);
	LoadGraphic(GetCurrentScriptDirectory~"img\dot-kaze-ti2.png");
	LoadUserShotData(GetCurrentScriptDirectory~".\shot_All.txt");
	SetMovePosition02(cx,140,100);
	DeleteEnemyShot(ALL);
	SetDamageRate(140,100);
}

@MainLoop
{
	if (count>110)
	{
		CreateShotA(N15,cx+200*sin(count*21),0,35);
		SetShotDataA(N15,0,0,90,0,0,0,BLUE02);
		SetShotDataA(N15,20,9,90,rand(-0.2,0.2),-0.2,4,BLUE02);
		SetShotDataA(N15,30,NULL,NULL,0,-0.1,4,BLUE02);
		FireShot(N15);
		PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
	}

	SetCollisionA(GetX(),GetY()-5,20);
	SetCollisionB(GetX(),GetY()+12,8);

	count++;
}

@DrawLoop
{

	SetTexture(GetCurrentScriptDirectory~"img\dot-kaze-ti2.png");
	SetGraphicRect(128,128,256,256);
	SetGraphicAngle(0,0,0+30*sin(count*5));
	SetColor(255,255,255);
	SetRenderState(ALPHA);
	SetGraphicScale(1,1);
	DrawGraphic(GetX(),GetY()-22);
}
}
