From 7a95723c0759cb8937da36400049ce1d4f5bc311 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Sun, 6 Oct 2024 15:23:17 +0200 Subject: [PATCH] one click buttons + last life view --- src/main.rs | 58 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/src/main.rs b/src/main.rs index 04dc200..9055db7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,6 +98,7 @@ struct Player { target_cons_name: Option, score: usize, health: usize, + thinking: bool, } #[derive(Clone, Copy, Default, Eq, PartialEq, Debug, Hash, States)] @@ -204,6 +205,7 @@ fn start_ui_setup(mut commands: Commands, _asset_server: Res) { target_cons_name: None, score: 0, health: 3, + thinking: true, }, GameOver, )); @@ -472,7 +474,12 @@ fn choose_constellation( mut button_query: Query<(&mut BackgroundColor, &mut BorderColor), With