game states cleanup

This commit is contained in:
2026-09-19 11:33:43 +02:00
parent 05616061ed
commit 3910eb4261
+3 -7
View File
@@ -35,14 +35,10 @@ fn spawn_depth_text(mut commands: Commands) {
)); ));
} }
// Update depth score text // Update depth score texts
fn update_depth_text( fn update_depth_text(depth: Res<Depth>, texts: Query<&mut Text, With<DepthText>>) {
mut commands: Commands,
depth: Res<Depth>,
texts: Query<&mut Text, With<DepthText>>,
) {
for mut text in texts { for mut text in texts {
text.0 = format!("Score: {}", depth.0); text.0 = format!("Score: {}", (depth.0 / 100.0).floor());
} }
} }