diff --git a/src/config.rs b/src/config.rs index 64894b9..e4c00ac 100644 --- a/src/config.rs +++ b/src/config.rs @@ -104,5 +104,6 @@ pub const HEALTH_BAR_DAMP: f32 = 1.0; pub const TIME_SCALE_DAMP: f32 = 100.0; pub const GAME_OVER_TIME_SCALE_DAMP: f32 = 5.0; +pub const GAME_OVER_SLOW_MOTION_TIME_SCALE: f32 = 0.2; pub const GAME_OVER_SLOW_MOTION_DURATION: f32 = 0.8; pub const GAME_OVER_STATE_CHANGE_DURATION: f32 = 2.0; diff --git a/src/game/battle.rs b/src/game/battle.rs index e8689b4..d0a0f6c 100644 --- a/src/game/battle.rs +++ b/src/game/battle.rs @@ -60,34 +60,20 @@ fn enter_battle( } /// Deals with [`GameOverEvent`]. -/// The system triggers a slow motion with the duration of [`GAME_OVER_SLOW_MOTION_DURATION`] -/// and also changes the [`AppState`] after [`GAME_OVER_STATE_CHANGE_DURATION`]. +/// Changes the [`AppState`] after [`GAME_OVER_STATE_CHANGE_DURATION`]. fn game_over_system( time: Res