Upgrade to bevy 0.13

master
hheik 2024-02-25 16:33:10 +02:00
parent 1d6c61e481
commit 97c58f9a6f
3 changed files with 672 additions and 504 deletions

1162
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,11 +6,11 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = "0.12.1"
bevy-inspector-egui = "0.21.0"
bevy_mod_debugdump = "0.9.0"
bevy_rapier2d = "0.23.0"
num-traits = "0.2.17"
bevy = "0.13.0"
bevy-inspector-egui = "0.23.2"
bevy_mod_debugdump = "0.10.0"
bevy_rapier2d = "0.25.0"
num-traits = "0.2.18"
# Enable a small amount of optimization in debug mode
[profile.dev]

View File

@ -38,8 +38,8 @@ fn is_debug_enabled(debug_mode: Res<DebugMode>) -> bool {
debug_mode.enabled
}
fn debug_toggle(input: Res<Input<KeyCode>>, mut debug_mode: ResMut<DebugMode>) {
if input.just_pressed(KeyCode::P) {
fn debug_toggle(input: Res<ButtonInput<KeyCode>>, mut debug_mode: ResMut<DebugMode>) {
if input.just_pressed(KeyCode::KeyP) {
debug_mode.enabled = !debug_mode.enabled
}
}