#TouhouDanmakufu
#Title[NueN2_H]
#Text[NueN2_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);
	LoadSE(shot);
	LoadSE(laser);
	LoadSE(familiarspawn);
	LoadGraphic(imglifebar); 
	SetLife(6000);
	LoadSE(shot2);
	SetTimer(33);
	SetEnemyMarker(true);
	SetInvincibility(360);
	SetDamageRate(250, 75);
	SetMovePosition03(GetCenterX, GetClipMinY + 120, 10, 2);
	LoadGraphic(SP);
	LoadGraphic(MC);
	attack1;
	MoveIt;
	SetAction(ACT_MOVE, 60);
	SetShotAutoDeleteClip(10, 10, 10, 10);
	}

task MoveIt{
wait(240);
loop{
ExMove;
wait(60);
SetAction(ACT_SHOT_B, 120);
wait(120);
}
}

task attack1 {
let one = 1;
let angle = 0;
let angle2 = 0;
wait(90);
loop{
PlaySE(shot3);
loop(2){
ascent(i in 0..7){
CreateShot01(GetX+50*cos(angle), GetY+50*sin(angle), 2.75-(i/7), i*360/7+(i*5)+angle, GREEN56, 30);
}
angle+=360/2;

}
angle+=17;
wait(10);




}
}
}