diff --git a/Cargo.toml b/Cargo.toml index fc7be11..beb474e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_flycam" -version = "0.6.0" +version = "0.7.0" authors = ["Spencer Burris "] edition = "2021" license = "ISC" @@ -14,7 +14,7 @@ resolver = "2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = {version = "0.6", default-features = false, features = ["bevy_render"]} +bevy = {version = "0.7", default-features = false, features = ["bevy_render"]} [dev-dependencies] -bevy = {version = "0.6", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline"]} +bevy = {version = "0.7", default-features = false, features = ["x11", "wayland", "bevy_pbr", "bevy_core_pipeline"]} \ No newline at end of file diff --git a/README.md b/README.md index f8f108e..ba9be73 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ![docs.rs](https://img.shields.io/docsrs/bevy_flycam) -A basic first-person fly camera for Bevy 0.6 +A basic first-person fly camera for Bevy 0.7 ## Controls * WASD to move horizontally @@ -25,7 +25,7 @@ There are a few notable differences from [bevy_fly_camera](https://github.com/mc 1. Add to `Cargo.toml` or copy `lib.rs` to your own file ```toml [dependencies] -bevy = "0.6" +bevy = "0.7" bevy_flycam = "*" ``` @@ -33,7 +33,7 @@ or ```toml [dependencies] -bevy = "0.6" +bevy = "0.7" bevy_flycam = { git = "https://github.com/sburris0/bevy_flycam" } ``` @@ -74,5 +74,13 @@ fn main() { } ``` +# Support +[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-released%20version-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking) + +bevy_flycam's crate version follows bevy's X version as shown: +|bevy|bevy_flycam| +|---|---| +|0.X.Y|0.X| + ## Contributing PRs are very welcome. diff --git a/examples/basic.rs b/examples/basic.rs index e1a3258..db82411 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -1,6 +1,3 @@ -// Remove the line below if you are copying this to your own project -extern crate bevy_flycam; - use bevy::prelude::*; use bevy_flycam::MovementSettings; use bevy_flycam::PlayerPlugin; diff --git a/examples/scroll.rs b/examples/scroll.rs index 66f6717..f9405be 100644 --- a/examples/scroll.rs +++ b/examples/scroll.rs @@ -1,6 +1,3 @@ -// Remove the line below if you are copying this to your own project -extern crate bevy_flycam; - use bevy::{ input::mouse::MouseWheel, prelude::*, render::camera::Camera, render::camera::CameraProjection, render::camera::PerspectiveProjection, window::Windows, @@ -71,7 +68,7 @@ fn setup( info!("Changing the selected value by scrolling the mousewheel"); } -// Listens for Z key being pressed and toggles between the two scroll-type states +/// Listens for Z key being pressed and toggles between the two scroll-type states [`ScrollType`] #[allow(unused_must_use)] fn switch_scroll_type( mut scroll_type: ResMut>, @@ -88,7 +85,7 @@ fn switch_scroll_type( } } -// Depending on the state, the mouse-scroll changes either the movement speed or the field-of-view of the camera +/// Depending on the state, the mouse-scroll changes either the movement speed or the field-of-view of the camera fn scroll( mut settings: ResMut, scroll_type: Res>, diff --git a/src/lib.rs b/src/lib.rs index 44045f5..13c177b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -use bevy::app::{Events, ManualEventReader}; +use bevy::ecs::event::{Events, ManualEventReader}; use bevy::input::mouse::MouseMotion; use bevy::prelude::*; @@ -25,7 +25,7 @@ impl Default for MovementSettings { } } -/// Used in queries when you want flycams and not other cameras +/// A marker component used in queries when you want flycams and not other cameras #[derive(Component)] pub struct FlyCam; @@ -56,10 +56,10 @@ fn player_move( time: Res