Skip to content

Commit

Permalink
Merge pull request #46 from etam/bevy_0_14
Browse files Browse the repository at this point in the history
update to bevy 0.14
  • Loading branch information
sburris0 authored Jul 9, 2024
2 parents 39de304 + 16f4939 commit 71056b4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
21 changes: 11 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_flycam"
version = "0.13.0"
version = "0.14.0"
authors = ["Spencer Burris <[email protected]>"]
edition = "2021"
license = "ISC"
Expand All @@ -13,20 +13,21 @@ categories = ["game-engines", "game-development"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = { version = "0.13", default-features = false, features = [
"bevy_render",
"bevy_core_pipeline",
bevy = { version = "0.14", default-features = false, features = [
"bevy_asset",
"bevy_core_pipeline",
"bevy_render",
] }

[dev-dependencies]
bevy = { version = "0.13", default-features = false, features = [
"x11",
"wayland",
"bevy_pbr",
"bevy_core_pipeline",
bevy = { version = "0.14", default-features = false, features = [
"bevy_asset",
"bevy_core_pipeline",
"bevy_pbr",
"bevy_state",
"ktx2",
"zstd",
"tonemapping_luts",
"wayland",
"x11",
"zstd",
] }
6 changes: 3 additions & 3 deletions examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ fn setup(
) {
// plane
commands.spawn((PbrBundle {
mesh: meshes.add(Plane3d::new(Vec3::Y).mesh().size(5.0, 5.0)),
material: materials.add(Color::rgb(0.3, 0.5, 0.3)),
mesh: meshes.add(Plane3d::new(Vec3::Y, Vec2::splat(2.5))),
material: materials.add(Color::srgb(0.3, 0.5, 0.3)),
..Default::default()
},));

// cube
commands.spawn(PbrBundle {
mesh: meshes.add(Cuboid::new(1.0, 1.0, 1.0)),
material: materials.add(Color::rgb(0.8, 0.7, 0.6)),
material: materials.add(Color::srgb(0.8, 0.7, 0.6)),
transform: Transform::from_xyz(0.0, 0.5, 0.0),
..Default::default()
});
Expand Down
6 changes: 3 additions & 3 deletions examples/key_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ fn setup(
) {
// plane
commands.spawn((PbrBundle {
mesh: meshes.add(Plane3d::new(Vec3::Y).mesh().size(5.0, 5.0)),
material: materials.add(Color::rgb(0.3, 0.5, 0.3)),
mesh: meshes.add(Plane3d::new(Vec3::Y, Vec2::splat(2.5))),
material: materials.add(Color::srgb(0.3, 0.5, 0.3)),
..Default::default()
},));

// cube
commands.spawn(PbrBundle {
mesh: meshes.add(Cuboid::new(1.0, 1.0, 1.0)),
material: materials.add(Color::rgb(0.8, 0.7, 0.6)),
material: materials.add(Color::srgb(0.8, 0.7, 0.6)),
transform: Transform::from_xyz(0.0, 0.5, 0.0),
..Default::default()
});
Expand Down
6 changes: 3 additions & 3 deletions examples/scroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ fn setup(
) {
// plane
commands.spawn((PbrBundle {
mesh: meshes.add(Plane3d::new(Vec3::Y).mesh().size(5.0, 5.0)),
material: materials.add(Color::rgb(0.3, 0.5, 0.3)),
mesh: meshes.add(Plane3d::new(Vec3::Y, Vec2::splat(2.5))),
material: materials.add(Color::srgb(0.3, 0.5, 0.3)),
..Default::default()
},));

// cube
commands.spawn(PbrBundle {
mesh: meshes.add(Cuboid::new(1.0, 1.0, 1.0)),
material: materials.add(Color::rgb(0.8, 0.7, 0.6)),
material: materials.add(Color::srgb(0.8, 0.7, 0.6)),
transform: Transform::from_xyz(0.0, 0.5, 0.0),
..Default::default()
});
Expand Down

0 comments on commit 71056b4

Please sign in to comment.