diff --git a/src/player.rs b/src/player.rs index d7b52a5..8df4a97 100644 --- a/src/player.rs +++ b/src/player.rs @@ -61,7 +61,7 @@ pub fn movement( } else if keys.pressed(KeyCode::Down) { transform.rotation = Quat::from_rotation_z((180_f32).to_radians()); movement_factor = 1.; - } + } // Get the player's *forward* vector let movement_direction = transform.rotation * Vec3::Y; diff --git a/src/ui.rs b/src/ui.rs index 01c695e..02a3075 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -123,7 +123,8 @@ pub fn render_ui( // Show the stamina bar to be empty if the player has no stamina if player.stamina <= 0. { - stamina_bar = stamina_bar.fill(egui::Color32::from_rgba_unmultiplied(0, 0, 0, 0)); + stamina_bar = + stamina_bar.fill(egui::Color32::from_rgba_unmultiplied(0, 0, 0, 0)); }; // Show the progress bars!