Merge branch 'gal-44-add-explosion-effects'

This commit is contained in:
Harald Hoyer 2026-05-06 20:33:23 +02:00
commit 35300ec62b
8 changed files with 128 additions and 3 deletions

View file

@ -36,7 +36,7 @@ use bullet::{
move_enemy_bullets,
};
use stage::check_stage_clear;
use systems::{player_exists, player_vulnerable, setup, should_respawn_player, update_window_title};
use systems::{player_exists, player_vulnerable, setup, should_respawn_player, update_window_title, animate_explosion};
use starfield::scroll_starfield;
fn main() {
@ -120,6 +120,8 @@ fn main() {
)
// Starfield runs in all states
.add_systems(Update, scroll_starfield)
// Explosion animation runs in all states
.add_systems(Update, animate_explosion)
// UI and state management systems
.add_systems(OnEnter(AppState::StartMenu), setup_start_menu_ui)
.add_systems(OnExit(AppState::StartMenu), cleanup_start_menu_ui)