Skip to content

Commit

Permalink
Added info! to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackPhlox committed Jan 27, 2022
1 parent 6c483ef commit 7b194fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,9 @@ fn setup(
transform: Transform::from_xyz(4.0, 8.0, 4.0),
..Default::default()
});

info!("Move camera around by using WASD for lateral movement");
info!("Use Left Shift and Spacebar for vertical movement");
info!("Use the mouse to look around");
info!("Press Esc to hide or show the mouse cursor");
}
9 changes: 6 additions & 3 deletions examples/scroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ fn main() {
})
// Setting initial state
.add_state(ScrollType::MovementSpeed)
.add_startup_system(setup.system())
.add_system(switch_scroll_type.system())
.add_system(scroll.system())
.add_startup_system(setup)
.add_system(switch_scroll_type)
.add_system(scroll)
.run();
}

Expand Down Expand Up @@ -66,6 +66,9 @@ fn setup(

// add plugin
commands.spawn_bundle(camera).insert(FlyCam);

info!("Press 'Z' to switch between Movement Speed and Zoom");
info!("Changing the selected value by scrolling the mousewheel");
}

// Listens for Z key being pressed and toggles between the two scroll-type states
Expand Down

0 comments on commit 7b194fc

Please sign in to comment.