From 26e54d05cfdf380bce1da4a9e31c7e465bb8e1a9 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Mon, 7 Oct 2024 22:12:17 +0200 Subject: [PATCH] opa --- src/explo_state.rs | 7 ++++++ src/game_state.rs | 6 ++--- src/main.rs | 57 ++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 63 insertions(+), 7 deletions(-) diff --git a/src/explo_state.rs b/src/explo_state.rs index 2c8fe43..a19652f 100644 --- a/src/explo_state.rs +++ b/src/explo_state.rs @@ -3,6 +3,13 @@ use bevy::prelude::*; use crate::Player; use crate::GameState; +// pub fn setup ( +// +// ) { +// for +// spawn_cons_lines(commands, meshes, materials, sky, target_cons.clone()); +// } + pub fn player_mouse_move ( buttons: Res>, mut player_query: Query<(&mut Player, &Camera, &mut GlobalTransform)>, diff --git a/src/game_state.rs b/src/game_state.rs index d6c6dd0..e5744dd 100644 --- a/src/game_state.rs +++ b/src/game_state.rs @@ -7,7 +7,7 @@ use crate::GameState; use crate::MainGame; use crate::Sky; use crate::Constellation; -use crate::ConstellationLine; +use crate::ConstellationModel; use crate::celestial_to_cartesian; use crate::spawn_cons_lines; @@ -205,7 +205,7 @@ pub fn player_interact( sky: Res, text_query: Query<&mut Text, With>, button_query: Query<(&mut BackgroundColor, &mut BorderColor), With