script_enemy_main {
	let bossImage = GetCurrentScriptDirectory~"cirno.png";
	let bossBack = GetCurrentScriptDirectory~"cirnoback.png";
	@Initialize {
		if(GetPlayerType==USER_PLAYER) { RaiseError("Why are you using this player","Error"); }
		SetLife(1000);
		SetDamageRate(20, 50);
		SetTimer(65);
		LoadGraphic(bossImage);
		LoadGraphic(bossBack);
		SetText("Ice Sign "\""Icicle Fall"\");
		SetScore(10000);
	}
	let frame = -120;
	let a = 90;
	@MainLoop {
		if(frame == -120) {
			SetMovePosition02(GetCenterX, GetCenterY/2, 15);
			Concentration01(120);
		}
		frame++;
		if(frame == 20) {
			ascent(i in 0..7) {
				CreateShotA(0, GetX, GetY, 0);
				SetShotDataA(0, 0, 11-i*3/2, a-90, 0, 0, 0, BLUE23);
				SetShotDataA(0, 20, 0, a+i*6, 0, 0.2, 3, NULL);
				FireShot(0);
				CreateShotA(0, GetX, GetY, 0);
				SetShotDataA(0, 0, 11-i*3/2, a+90, 0, 0, 0, BLUE23);
				SetShotDataA(0, 20, 0, a-i*6, 0, 0.2, 3, NULL);
				FireShot(0);
				CreateShotA(0, GetX, GetY, 0);
				SetShotDataA(0, 0, 11-i*3/2, a-90, 0, 0, 0, BLUE23);
				SetShotDataA(0, 20, 0, a-i*6+180, 0, 0.2, 3, NULL);
				FireShot(0);
				CreateShotA(0, GetX, GetY, 0);
				SetShotDataA(0, 0, 11-i*3/2, a+90, 0, 0, 0, BLUE23);
				SetShotDataA(0, 20, 0, a+i*6+180, 0, 0.2, 3, NULL);
				FireShot(0);
			}
			frame = 0;
		}
		if(GetFps >= 100 || OnBomb || GetKeyState(VK_SHOT)!=KEY_FREE) { SetTimer(60); }
	}
	@DrawLoop {
		SetTexture(bossImage);
		SetGraphicRect(0, 0, 128, 128);
		SetGraphicScale(1, 1);
		SetGraphicAngle(0, 0, 0);
		SetAlpha(255);
		DrawGraphic(GetX, GetY);
		DrawText("Cirno", 40, 30, 12, 255);
	}
	let backspin = 0;
	@BackGround {
		SetTexture(bossBack);
		SetGraphicRect(0, 0, 512, 512);
		SetGraphicScale(3/2, 3/2);
		SetGraphicAngle(0, 0, backspin);
		SetAlpha(255);
		DrawGraphic(GetCenterX, GetCenterY);
		backspin+=1; backspin%=360;
	}
	@Finalize {
		DeleteGraphic(bossImage);
		DeleteGraphic(bossBack);
	}
}