From e4f2438e8493a165bca7557fa143c494672bb161 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Mon, 2 Dec 2024 16:44:44 -0700 Subject: [PATCH] Update to Bevy 0.15 --- Cargo.toml | 2 +- src/main.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d4a020..3b58c5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,4 @@ opt-level = 1 opt-level = 3 [dependencies] -bevy = "0.14" +bevy = "0.15" diff --git a/src/main.rs b/src/main.rs index bcf1ea7..0ae962d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,9 +21,9 @@ fn main() { } fn setup(mut commands: Commands, asset_server: Res) { - commands.spawn(Camera2dBundle::default()); - commands.spawn(SpriteBundle { - texture: asset_server.load("ducky.png"), + commands.spawn(Camera2d); + commands.spawn(Sprite { + image: asset_server.load("ducky.png"), ..Default::default() }); }