make debug console top level

This commit is contained in:
Schrottkatze 2025-06-18 17:13:52 +02:00
parent d79475ae2a
commit 4c24f67cd5
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
9 changed files with 111 additions and 68 deletions

View file

@ -6,18 +6,7 @@ use crate::{
};
mod camera;
mod debug;
mod scene;
mod tram {
use bevy::prelude::*;
fn spawn_tram(
mut c: Commands,
mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<StandardMaterial>>,
) {
}
}
/// Gameplay system set. All functions in this control the gameplay (duh).
#[derive(SystemSet, Debug, Clone, PartialEq, Eq, Hash)]
@ -29,6 +18,6 @@ pub fn plugin(app: &mut App) {
OnExit(AppState::Ingame),
despawn::<cleanup::Scene>.in_set(GameplaySet),
)
.add_plugins((debug::plugin, camera::plugin));
.add_plugins(camera::plugin);
app.configure_sets(Update, GameplaySet.run_if(in_state(AppState::Ingame)));
}