From ba17c16042370ffdb8b0ce29994941f0e7197b89 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Mon, 7 Oct 2024 20:11:06 +0200 Subject: [PATCH] escape from play --- src/game_state.rs | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/game_state.rs b/src/game_state.rs index c928a83..72c3f73 100644 --- a/src/game_state.rs +++ b/src/game_state.rs @@ -1,5 +1,4 @@ use bevy::prelude::*; -use std::f64::consts::PI; use rand::seq::SliceRandom; use rand::RngCore; @@ -172,18 +171,18 @@ pub fn setup( pub fn player_interact( keys: Res>, - mut player_query: Query<(&mut Player, &mut Transform)>, + mut player_query: Query<&mut Player>, mut game_data: ResMut, sky: Res, text_query: Query<&mut Text, With>, button_query: Query<(&mut BackgroundColor, &mut BorderColor), With