Merge branch 'gal-44-add-explosion-effects'
This commit is contained in:
commit
35300ec62b
8 changed files with 128 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue