game states cleanup

This commit is contained in:
2026-09-19 11:10:35 +02:00
parent 9127d9bb1c
commit 7234a3d664
+2 -6
View File
@@ -36,13 +36,9 @@ fn spawn_depth_text(mut commands: Commands) {
}
// Update depth score text
fn update_depth_text(
mut commands: Commands,
depth: Res<Depth>,
texts: Query<&mut Text, With<DepthText>>,
) {
fn update_depth_text(depth: Res<Depth>, texts: Query<&mut Text, With<DepthText>>) {
for mut text in texts {
text.0 = format!("Score: {}", depth.0);
text.0 = format!("Score: {}", (depth.0 / 100.0).floor());
}
}