From ef466f3a963f4720eceeb7cd1fc97933fbe6cb64 Mon Sep 17 00:00:00 2001 From: Clayton Ferris Date: Wed, 21 Feb 2024 16:13:13 -0700 Subject: [PATCH 1/4] bevy 0.13 support --- Cargo.toml | 11 +++++--- examples/collectathon/player.rs | 10 +++---- examples/collectathon/respawn.rs | 8 +++--- examples/level_set.rs | 2 +- examples/platformer/components.rs | 2 +- examples/platformer/systems.rs | 26 +++++++++--------- examples/tile_based_game.rs | 10 +++---- examples/traitless.rs | 15 +++++------ macros/src/ldtk_entity.rs | 22 +++++++-------- src/app/entity_app_ext.rs | 2 +- src/app/ldtk_entity.rs | 34 +++++++++++------------ src/app/ldtk_int_cell.rs | 12 ++++----- src/ldtk/impl_definitions.rs | 6 ++++- src/level.rs | 16 ++++++----- src/systems.rs | 2 +- src/utils.rs | 45 ++++++++++++++----------------- 16 files changed, 112 insertions(+), 111 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e1ade0b1..9d4e7935 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/rparrett/bevy_ecs_tilemap/", branch = "bevy13" } 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