Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Bevy 0.11 updates #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion template_game/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ authors = ["Leafwing Studios"]
edition = "2021"

[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", rev="f7fbfaf", default-features = false}
bevy = { git = "https://github.com/bevyengine/bevy", rev="12c6fa7", default-features = false}
template_lib ={ path = "../template_lib", version = "0.1"}
4 changes: 2 additions & 2 deletions template_game/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn main() {
}),
..default()
}))
.add_plugin(template_lib::player::PlayerPlugin)
.add_plugin(template_lib::graphics::GraphicsPlugin)
.add_plugins(template_lib::player::PlayerPlugin)
.add_plugins(template_lib::graphics::GraphicsPlugin)
.run();
}
2 changes: 1 addition & 1 deletion template_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache 2.0"
edition = "2021"

[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", rev="f7fbfaf", default-features = false, features = [
bevy = { git = "https://github.com/bevyengine/bevy", rev="12c6fa7", default-features = false, features = [
"bevy_asset",
"bevy_core_pipeline",
"bevy_gilrs",
Expand Down
2 changes: 1 addition & 1 deletion template_lib/src/graphics/lighting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Plugin for LightingPlugin {
brightness: 1.,
color: Color::WHITE,
})
.add_startup_system(spawn_sun);
.add_systems(Startup, spawn_sun);
}
}

Expand Down
2 changes: 1 addition & 1 deletion template_lib/src/graphics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct GraphicsPlugin;

impl Plugin for GraphicsPlugin {
fn build(&self, app: &mut App) {
app.add_plugin(LightingPlugin);
app.add_plugins(LightingPlugin);
}
}

Expand Down
2 changes: 1 addition & 1 deletion template_lib/src/player/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub struct CameraPlugin;

impl Plugin for CameraPlugin {
fn build(&self, app: &mut App) {
app.add_startup_system(camera_setup);
app.add_systems(Startup, camera_setup);
}
}

Expand Down
2 changes: 1 addition & 1 deletion template_lib/src/player/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ pub struct PlayerPlugin;

impl Plugin for PlayerPlugin {
fn build(&self, app: &mut App) {
app.add_plugin(camera::CameraPlugin);
app.add_plugins(camera::CameraPlugin);
}
}