#TouhouDanmakufu
#Title[NueN1_H]
#Text[NueN1_H]
#Player[FREE]
#ScriptVersion[2]
#BGM[.\mu\bgm.mp3]

script_enemy_main {
#include_function ".\Nueinclude.txt";

	@Initialize{
	InitializeAction;
	LoadMusic(bgm);
	PlayMusic(bgm);
	LoadSE(shot3);
	LoadSE(time1);
	LoadGraphic(imageFile);
	LoadSE(time2);
	LoadSE(wtf);
	shotinit;
	LoadSE(charge);
	SetAction(ACT_MOVE, 120);
	LoadSE(shot);
	LoadSE(laser);
	LoadSE(familiarspawn);
	LoadGraphic(imglifebar); 
	SetLife(6000);
	LoadSE(shot2);
	SetTimer(28);
	SetEnemyMarker(true);
	SetInvincibility(180);
	SetDamageRate(200, 75);
	SetMovePosition03(GetCenterX, GetClipMinY + 120, 10, 2);
	LoadGraphic(SP);
	LoadGraphic(MC);
	attack1;
	
	SetShotAutoDeleteClip(10, 10, 10, 10);
	}

	

task attack1 {
let one = 1;
wait(90);
loop{
SetAction(ACT_SHOT_A, 360);
loop(8){
PlaySE(shot3);
ascent(i in -9..9){ if(i>=-2 && i<=2){ CreateShot01(GetX, GetY, 0.75+(absolute(i)/3), i*180/18+angle, BLUE56, 0);  } else{CreateShot01(GetX, GetY, absolute(i/2), i*180/18+angle, BLUE56, 0);  }}
ascent(i in -9..9){ if(i>=-2 && i<=2){  CreateShot01(GetX, GetY, 0.75+(absolute(i)/3), i*180/18+angle-180, BLUE56, 0);}  else{ CreateShot01(GetX, GetY, absolute(i/2), i*180/18+angle-180, BLUE56, 0);  }}
wait(20);
angle+=36.43*one;
}
ExMove;
angle = rand(-20, 20);
wait(60);
one=one*-1;

} 



}



}