diff --git a/src/lib.rs b/src/lib.rs index 676449b..d4ee5fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,7 +51,6 @@ impl Plugin for ArkanoidPlugin { })) .add_plugin(RapierPhysicsPlugin::::pixels_per_meter(4.)) .add_plugin(AudioPlugin) - .add_plugin(WorldInspectorPlugin) .add_plugin(camera::CameraPlugin) .add_plugin(actions::ActionsPlugin) .add_plugin(cursor::CursorPlugin) @@ -65,5 +64,10 @@ impl Plugin for ArkanoidPlugin { .add_plugin(ui::UiPlugin) .add_plugin(block::BlockPlugin) .add_state(GameState::Loading); + + // Debug-only plugins + if cfg!(debug_assertions) { + app.add_plugin(WorldInspectorPlugin); + } } }