diff --git a/Cargo.toml b/Cargo.toml index e1ade0b1..ba839b07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ members = ["macros"] [dependencies] bevy_ecs_ldtk_macros = { version = "0.9.0", optional = true, path = "macros" } bevy_ecs_tilemap = { version = "0.12", default-features = false } -bevy = { version = "0.12", default-features = false, features = ["bevy_sprite"] } +bevy = { version = "0.13", default-features = false, features = ["bevy_sprite"] } derive-getters = "0.3.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" @@ -28,11 +28,11 @@ derive_more = "0.99.17" path-clean = "1.0.1" [dev-dependencies] -bevy = "0.12" -bevy_rapier2d = "0.23.0" +bevy = "0.13" +bevy_rapier2d = "0.25.0" fake = { version = "2.8.0", features = ["uuid"] } rand = "0.8" -bevy-inspector-egui = "0.21.0" +bevy-inspector-egui = "0.23.0" [features] default = ["derive", "render", "internal_levels"] @@ -56,3 +56,6 @@ path = "examples/field_instances/main.rs" [[example]] name = "collectathon" path = "examples/collectathon/main.rs" + +[patch.crates-io] +bevy_ecs_tilemap = { git = "https://github.com/StarArawn/bevy_ecs_tilemap/", branch = "main" } diff --git a/README.md b/README.md index 227da814..3ddae730 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ $ cargo run --example example-name ## Compatibility | bevy | bevy_ecs_tilemap | LDtk | bevy_ecs_ldtk | | --- | --- | --- | --- | +| 0.13 | main | 1.5.3 | main | | 0.12 | 0.12 | 1.5.3 | 0.9 | | 0.11 | 0.11 | 1.3.3 | 0.8 | | 0.10 | 0.10 | 1.1 | 0.7 | diff --git a/book/src/how-to-guides/respawn-levels-and-worlds.md b/book/src/how-to-guides/respawn-levels-and-worlds.md index 24b0987c..8351193e 100644 --- a/book/src/how-to-guides/respawn-levels-and-worlds.md +++ b/book/src/how-to-guides/respawn-levels-and-worlds.md @@ -27,9 +27,9 @@ For example, if the game should only spawn one level at a time, operate under th fn respawn_only_level( mut commands: Commands, levels: Query>, - input: Res> + input: Res> ) { - if input.just_pressed(KeyCode::L) { + if input.just_pressed(KeyCode::KeyL) { commands.entity(levels.single()).insert(Respawn); } } @@ -54,7 +54,7 @@ There is a method on `LdtkProject` to perform this search. ldtk_projects: Query<&Handle>, ldtk_project_assets: Res>, ) { - if input.just_pressed(KeyCode::L) { + if input.just_pressed(KeyCode::KeyL) { if let Some(only_project) = ldtk_project_assets.get(ldtk_projects.single()) { let level_selection_iid = LevelIid::new( only_project diff --git a/examples/collectathon/player.rs b/examples/collectathon/player.rs index 7b7689f1..bdd2982a 100644 --- a/examples/collectathon/player.rs +++ b/examples/collectathon/player.rs @@ -30,22 +30,22 @@ const MOVEMENT_SPEED: f32 = 96.; fn move_player( mut players: Query<&mut Transform, With>, - input: Res>, + input: Res>, time: Res