diff --git a/examples/game/breakout.rs b/examples/game/breakout.rs index 35fbf6a8c870ae..444baf75958346 100644 --- a/examples/game/breakout.rs +++ b/examples/game/breakout.rs @@ -6,7 +6,6 @@ use bevy::{ }; /// An implementation of the classic game "Breakout" -const TIME_STEP: f32 = 1.0 / 60.0; fn main() { App::build() .add_plugins(DefaultPlugins) @@ -16,7 +15,7 @@ fn main() { .add_stage( FixedUpdateStage, SystemStage::parallel() - .with_run_criteria(FixedTimestep::step(TIME_STEP as f64)) + .with_run_criteria(FixedTimestep::step(1.0 / 60.0)) .with_system(paddle_movement_system.system()) .with_system(ball_collision_system.system()) .with_system(ball_movement_system.system()),