refactor: fmt

Former-commit-id: 40ebe7426e6b022b009f01d20c2ffbfa4cb72355
This commit is contained in:
Muhammad Nauman Raza 2023-12-07 17:44:34 +00:00
parent 32a66ec64f
commit f3c2bd7a5a
Signed by: devraza
GPG key ID: 91EAD6081011574B
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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!