Skip to content

Commit

Permalink
Merge branch '2d-controls' of https://github.com/MaikoVDV/bevy_spectator
Browse files Browse the repository at this point in the history
 into pr/5
  • Loading branch information
JonahPlusPlus committed Nov 10, 2023
2 parents e6071ec + b62e97d commit 269f8b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bevy = { version = "0.11", default-features = false, features = [
"bevy_asset",
"bevy_core_pipeline",
"bevy_pbr",
"bevy_sprite",
"bevy_render",
"x11",
"ktx2",
Expand All @@ -32,3 +33,7 @@ init = [] # Enables automatically choosing a camera
[[example]]
name = "3d_scene"
path = "examples/3d_scene.rs"

[[example]]
name = "2d_scene"
path = "examples/2d_scene.rs"
4 changes: 2 additions & 2 deletions examples/2d_scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ fn main() {
..default()
})
.add_plugins(DefaultPlugins)
.add_plugin(SpectatorPlugin)
.add_startup_system(setup)
.add_plugins(SpectatorPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ pub struct SpectatorSettings {
///
/// Use this to control how fast the [`Spectator`] turns when you move the mouse.
pub sensitivity: f32,
/// Use a control scheme more fit for orthographic (2D) rendering
///
/// Use a control scheme more fit for orthographic (2D) rendering. (Default: `false`)
///
/// Disables mouse capturing and hiding, prevents moving along z-axis and uses W and S for y-axis movement
pub orthographic: bool,
}
Expand Down

0 comments on commit 269f8b1

Please sign in to comment.