refactor: fmt
Former-commit-id: 40ebe7426e6b022b009f01d20c2ffbfa4cb72355
This commit is contained in:
parent
32a66ec64f
commit
f3c2bd7a5a
|
@ -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;
|
||||
|
|
|
@ -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!
|
||||
|
|
Reference in a new issue