diff --git a/Cargo.toml b/Cargo.toml index 80e236a..c6cc4e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" exclude = ["assets/*", "static/*"] [dependencies] -bevy = { version = "0.14", default-features = false, features = [ +bevy = { version = "0.15.0-rc.2", default-features = false, features = [ "bevy_render", "bevy_core_pipeline", "bevy_winit", @@ -20,7 +20,7 @@ bevy = { version = "0.14", default-features = false, features = [ smallvec = "1.13" [dev-dependencies] -bevy = { version = "0.14", default-features = false, features = [ +bevy = { version = "0.15.0-rc.2", default-features = false, features = [ "bevy_render", "bevy_core_pipeline", "bevy_winit", diff --git a/examples/basic.rs b/examples/basic.rs index 1829db6..df9fb63 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -9,7 +9,7 @@ fn main() { } fn setup(mut commands: Commands) { - commands.spawn(Camera2dBundle::default()); + commands.spawn(Camera2d); commands.spawn(PointLight2dBundle { point_light: PointLight2d { diff --git a/examples/dungeon.rs b/examples/dungeon.rs index 48166da..5b43211 100644 --- a/examples/dungeon.rs +++ b/examples/dungeon.rs @@ -38,10 +38,11 @@ struct Candle; struct AnimationTimer(Timer); fn setup_camera(mut commands: Commands) { - let mut camera = Camera2dBundle::default(); - camera.projection.scale = 0.25; + let mut projection = OrthographicProjection::default_2d(); + projection.scale = 0.25; commands.spawn(( - camera, + Camera2d, + projection, AmbientLight2d { brightness: 0.1, ..default() @@ -55,12 +56,14 @@ fn set_clear_color(mut clear_color: ResMut) { fn animate_candles( time: Res