Upgrade to bevy 0.16.1
parent
9e8912506e
commit
4e8c1eda06
File diff suppressed because it is too large
Load Diff
|
|
@ -6,12 +6,11 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = "0.16.0"
|
bevy = "0.16.1"
|
||||||
bevy-inspector-egui = "0.31.0"
|
bevy-inspector-egui = "0.32.0"
|
||||||
bevy_egui = "0.34.1"
|
bevy_egui = "0.35.1"
|
||||||
bevy_mod_debugdump = "0.13.0"
|
bevy_mod_debugdump = "0.13.0"
|
||||||
bevy_prototype_lyon = "0.13.0"
|
bevy_prototype_lyon = "0.13.0"
|
||||||
# bevy_rapier2d = "0.29.0"
|
|
||||||
num-traits = "0.2.19"
|
num-traits = "0.2.19"
|
||||||
|
|
||||||
# Enable a small amount of optimization in debug mode
|
# Enable a small amount of optimization in debug mode
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,9 @@ impl Plugin for DebugPlugin {
|
||||||
|
|
||||||
app.insert_resource(DebugMode::on())
|
app.insert_resource(DebugMode::on())
|
||||||
.add_plugins((
|
.add_plugins((
|
||||||
// WorldInspector requires EguiPlugin plugin to be added before it
|
// // WorldInspector requires EguiPlugin plugin to be added before it
|
||||||
bevy_egui::EguiPlugin {
|
bevy_egui::EguiPlugin::default(),
|
||||||
enable_multipass_for_primary_context: true,
|
|
||||||
},
|
|
||||||
bevy_inspector_egui::quick::WorldInspectorPlugin::new().run_if(is_debug_enabled),
|
bevy_inspector_egui::quick::WorldInspectorPlugin::new().run_if(is_debug_enabled),
|
||||||
// TODO: uncomment when rapier is updated for bevy 0.16
|
|
||||||
// bevy_rapier2d::prelude::RapierDebugRenderPlugin::default(),
|
|
||||||
))
|
))
|
||||||
.add_systems(Update, debug_toggle);
|
.add_systems(Update, debug_toggle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
use crate::{debug, game_setup, util};
|
use crate::{debug, game_setup, util};
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
// TODO: uncomment when rapier is updated for bevy 0.16
|
|
||||||
// use bevy_rapier2d::prelude::*;
|
|
||||||
|
|
||||||
mod prefab;
|
mod prefab;
|
||||||
mod systems;
|
mod systems;
|
||||||
|
|
@ -10,8 +8,6 @@ pub fn init(app: &mut App) {
|
||||||
let app = app.add_plugins((
|
let app = app.add_plugins((
|
||||||
game_setup::GameSetupPlugin,
|
game_setup::GameSetupPlugin,
|
||||||
util::UtilPlugin,
|
util::UtilPlugin,
|
||||||
// TODO: uncomment when rapier is updated for bevy 0.16
|
|
||||||
// RapierPhysicsPlugin::<NoUserData>::default(),
|
|
||||||
debug::DebugPlugin,
|
debug::DebugPlugin,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue