#東方弾幕風
#Title[大回転 「A lot of knives(L1)」]
#Text[初の弾幕作成。上手くできたかな…]
#BackGround[Default]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main {
	let name = "大回転 「A lot of knives(L1)」";
	let imgBoss = "script\img\ExRumia.png";
	let angleBase = 90;
	let frame = 0;

	@Initialize {
		CutIn(YOUMU, name, "", 0, 0, 0, 0);

		SetX(GetCenterX);
		SetY(GetCenterY);
		SetLife(500);
		SetTimer(15);
		SetScore(1000);

		LoadGraphic(imgBoss);
		SetTexture(imgBoss);
		SetGraphicRect(0, 0, 63, 63);
	}

	@MainLoop {
		SetCollisionA(GetX, GetY, 24);
		SetCollisionB(GetX, GetY, 24);

		frame++;
		if(frame == 2) {

			CreateShot01(GetX, GetY, 2, angleBase - 135, GREEN32, 0);
			CreateShot01(GetX, GetY, 2, angleBase - 90, YELLOW32, 0);
			CreateShot01(GetX, GetY, 2, angleBase - 45, RED32, 0);
			CreateShot01(GetX, GetY, 2, angleBase , BLUE32, 0);
			CreateShot01(GetX, GetY, 2, angleBase + 45, GREEN32, 0);
			CreateShot01(GetX, GetY, 2, angleBase + 90, YELLOW32, 0);					CreateShot01(GetX, GetY, 2, angleBase + 135, RED32, 0);
			CreateShot01(GetX, GetY, 2, angleBase + 135, RED32, 0);
			CreateShot01(GetX, GetY, 2, angleBase + 180, BLUE32, 0);

			angleBase += 1;
			frame = 0;
		}
	}

	@DrawLoop {
		DrawGraphic(GetX, GetY);
	}

	@Finalize {
		DeleteGraphic(imgBoss);
	}


}