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

script_enemy_main {
#include_function ".\Yukainclude.txt";
let one = 1;
let two = 1;
let color = 0;
	@Initialize{
	InitializeAction;
	LoadMusic(bgm);
	PlayMusic(bgm);
	LoadSE(shot3);
	LoadSE(time1);
	LoadSE(teleport);
	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(37);
	SetInvincibility(180);
	SetDamageRate(185, 75);
	SetMovePosition03(GetCenterX, GetClipMinY + 120, 10, 2);
	LoadGraphic(SP);
	LoadGraphic(MC);
	attack1;
	MagicCircle(false);
	SetShotAutoDeleteClip(60, 20, 60, 10);
	SetEnemyMarker(true);
	//SetCommonData("lastattack", true);
	}

task attack1 {

wait(90);
loop{
SetAction(ACT_SHOT_B, 150);
wait(10);
ascent(i in 0..27){
	loop(11){
	CreateShot01(GetX-2, GetY+20, 3-(i/12), angle+rand(i/7, -i/7), [YELLOW04, ORANGE04][color%2], 15);
	angle+=360/11;
	}
	angle+=8.57564231*two;
	wait(5);
	}
color++;
two*=-1;
wait(5);
ExMove2;
if(GetPlayerX<GetX){ one=-1; } else{ one = 1; } 
ascent(i in 0..40){
	loop(6){
PC98(GetX+30*cos(angle), GetY+30*sin(angle), 3.5-(i/15), angle, BLUE12, 10, 3.5);
	angle+=360/6;
	}
angle+=10.045697821*one;
wait(3);
}
wait(30);

}
}


}


