We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7f467e commit 1df452eCopy full SHA for 1df452e
Cargo.toml
@@ -16,4 +16,4 @@ opt-level = 1
16
opt-level = 3
17
18
[dependencies]
19
-bevy = "0.14"
+bevy = "0.15"
src/main.rs
@@ -21,9 +21,9 @@ fn main() {
21
}
22
23
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"),
+ commands.spawn(Camera2d);
+ commands.spawn(Sprite {
+ image: asset_server.load("ducky.png"),
27
..Default::default()
28
});
29
0 commit comments