diff --git a/Cargo.toml b/Cargo.toml index 53bd820..4900d16 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ dev = [ "bevy/dynamic_linking", "dep:bevy-inspector-egui" ] +default = ["dev"] # All of Bevy's default features exept for the audio related ones (bevy_audio, vorbis), since they clash with bevy_kira_audio # and android_shared_stdcxx, since that is covered in `mobile` diff --git a/examples/simple_3d_test.rs b/examples/simple_3d_test.rs index 584951e..d1e4745 100644 --- a/examples/simple_3d_test.rs +++ b/examples/simple_3d_test.rs @@ -79,7 +79,7 @@ fn setup( ..default() }); - //spawn ships + //spawn sheeps let r = 50.0; let mut rng = rand::thread_rng(); let sheep_count = 2000; diff --git a/src/debug_diagnostic.rs b/src/debug_diagnostic.rs index 5fa889b..4d4b9d0 100644 --- a/src/debug_diagnostic.rs +++ b/src/debug_diagnostic.rs @@ -1,6 +1,10 @@ use bevy::prelude::*; -use crate::{safe_area::SheepCounter, sheep::StartSheepCount, GameSet, GameState, GameStuff}; +use crate::{ + safe_area::SheepCounter, + sheep::{Sheep, StartSheepCount}, + GameSet, GameState, GameStuff, +}; const FONT_SIZE: f32 = 24.0; @@ -15,15 +19,16 @@ impl Plugin for DiagnosticPlugin { apply_deferred, setup_counter, setup_sheep_counter, + setup_alive_sheep_counter, ) .chain(), ) .add_systems( Update, - (fps_counting, sheep_counter_text).in_set(GameSet::Playing), + (fps_counting, sheep_counter_text, alive_sheep_counter).in_set(GameSet::Playing), ); - #[cfg(debug_assertions)] + #[cfg(feature = "dev")] { app.add_plugins(bevy_inspector_egui::quick::WorldInspectorPlugin::default()); } @@ -80,14 +85,14 @@ fn fps_counting(mut query: Query<&mut Text, With>, time: Res