From 3910eb4261f670c80700665978d89fc88a2e52ed Mon Sep 17 00:00:00 2001 From: zefad Date: Sat, 19 Sep 2026 11:33:43 +0200 Subject: [PATCH] game states cleanup --- src/score.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/score.rs b/src/score.rs index e6ce074..9abd259 100644 --- a/src/score.rs +++ b/src/score.rs @@ -35,14 +35,10 @@ fn spawn_depth_text(mut commands: Commands) { )); } -// Update depth score text -fn update_depth_text( - mut commands: Commands, - depth: Res, - texts: Query<&mut Text, With>, -) { +// Update depth score texts +fn update_depth_text(depth: Res, texts: Query<&mut Text, With>) { for mut text in texts { - text.0 = format!("Score: {}", depth.0); + text.0 = format!("Score: {}", (depth.0 / 100.0).floor()); } }