#TouhouDanmakufu[Single]
#Title[Koishi - Nonspell #4]
#BackGround[User(.\bgNon.png, 0, 0)]
#BGM[.\music0.mp3]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main {

	#include_function ".\Include.~ath"

	task codeInit {
		SetLife(10000); SetTimer(62);
		SetMovePosition03(GetCenterX, GetCenterY/2, 10, 4);
		//cutin("???",imgBossCut,0,0,255,511); SetScore(1000000);
		SetInvincibility(120);
		wait(120);
		attack1;
	}
	task attack1 {
		let a = GetAngleToPlayer;
		loop {
			loop(15) {
				let n = 15;
				PlaySE2("se_shot_tan");
				ascent(j in 0..2) { ascent(i in 0..n+1) {
					SetShotColor(i*255/n, 255, 255-i*255/n);
					let v = 3/2+1*sin(i*360/n)+i/15; let ang = a+i*180/n*((-1)^j);
					CreateShot01(GetX, GetY, v, ang, PURPLE01, 10);
				} }
				SetShotColor(255, 255, 255);
				a+=17; a%=360;
				wait(12);
			} ExMove;
		}
	}
}