diff --git a/src/constants.rs b/src/constants.rs index 61828df..42db1da 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -47,6 +47,9 @@ pub const BEAM_CORE_COLOR: Color = Color::srgba(0.7, 0.2, 1.0, 0.7); pub const BEAM_PULSE_FREQ: f32 = 3.0; pub const BEAM_PULSE_AMPLITUDE: f32 = 0.15; +// Special stages +pub const SPECIAL_STAGE_INTERVAL: u32 = 3; + // Starfield pub const STAR_COUNT: usize = 150; pub const STAR_MIN_SIZE: f32 = 1.0; diff --git a/src/enemy.rs b/src/enemy.rs index 2d7bee2..20f59c8 100644 --- a/src/enemy.rs +++ b/src/enemy.rs @@ -12,6 +12,7 @@ use crate::constants::{ }; use crate::resources::{ AttackDiveTimer, CurrentStage, EnemySpawnTimer, FormationState, StageConfigurations, + is_special_stage, }; const BOSS_BASE_CHANCE: f32 = 0.30; @@ -341,7 +342,11 @@ pub fn enemy_shoot( mut commands: Commands, time: Res