Skip to content

Commit 1df452e

Browse files
authored
Update to Bevy 0.15 (#70)
1 parent a7f467e commit 1df452e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ opt-level = 1
1616
opt-level = 3
1717

1818
[dependencies]
19-
bevy = "0.14"
19+
bevy = "0.15"

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ fn main() {
2121
}
2222

2323
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
24-
commands.spawn(Camera2dBundle::default());
25-
commands.spawn(SpriteBundle {
26-
texture: asset_server.load("ducky.png"),
24+
commands.spawn(Camera2d);
25+
commands.spawn(Sprite {
26+
image: asset_server.load("ducky.png"),
2727
..Default::default()
2828
});
2929
}

0 commit comments

Comments
 (0)