Skip to content

Commit

Permalink
Update to Bevy 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Dec 2, 2024
1 parent a7f467e commit e4f2438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ opt-level = 1
opt-level = 3

[dependencies]
bevy = "0.14"
bevy = "0.15"
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ fn main() {
}

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
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()
});
}

0 comments on commit e4f2438

Please sign in to comment.