improve graphics and add camera controls
This commit is contained in:
parent
82a0fbdb50
commit
87fcc2b817
12 changed files with 367 additions and 93 deletions
|
|
@ -32,12 +32,13 @@ impl Plugin for StatePlugin {
|
|||
Update,
|
||||
(
|
||||
GameSystemSet::UpdateInputs,
|
||||
GameSystemSet::UI,
|
||||
(
|
||||
GameSystemSet::PreUpdate,
|
||||
GameSystemSet::Update,
|
||||
GameSystemSet::PostUpdate,
|
||||
)
|
||||
.run_if(in_state(GameState::Running).or(in_state(GameState::Paused)))
|
||||
.run_if(in_state(GameState::Running))
|
||||
.chain(),
|
||||
)
|
||||
.chain(),
|
||||
|
|
@ -68,7 +69,8 @@ pub enum GameState {
|
|||
pub enum GameSystemSet {
|
||||
// runs even if game is not loaded/active
|
||||
UpdateInputs,
|
||||
// update - cosmetic only. runs while game is paused
|
||||
UI,
|
||||
// update - cosmetic only. does not run while game is paused
|
||||
PreUpdate,
|
||||
Update,
|
||||
PostUpdate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue