Skip to content

Commit

Permalink
Moved inspector to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Dec 30, 2023
1 parent 19e2b23 commit d4bb933
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 7 additions & 1 deletion src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ use crate::prelude::*;
use bevy::sprite::Anchor;
use rand::Rng;

use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin};
use bevy_inspector_egui::quick::WorldInspectorPlugin;

//TODO add a debug mode

fn brush(
Expand Down Expand Up @@ -214,6 +217,9 @@ impl Plugin for DebugPlugin {
//_camera
),
)
.add_systems(PreUpdate, delete_image);
.add_systems(PreUpdate, delete_image)
.add_plugins(WorldInspectorPlugin::new())
//Frame on console
.add_plugins((LogDiagnosticsPlugin::default(), FrameTimeDiagnosticsPlugin));
}
}
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin};
use bevy::prelude::*;
use bevy_inspector_egui::quick::WorldInspectorPlugin;

mod actors;
mod animation;
Expand Down Expand Up @@ -29,7 +27,6 @@ use prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest()))
.add_plugins(WorldInspectorPlugin::new())
//local plugins
.add_plugins((
ChunkManagerPlugin,
Expand All @@ -39,8 +36,6 @@ fn main() {
AnimationPlugin,
))
.add_systems(Startup, setup)
//Frame on console
.add_plugins((LogDiagnosticsPlugin::default(), FrameTimeDiagnosticsPlugin))
.run();
}

Expand Down

0 comments on commit d4bb933

Please sign in to comment.