Player ui
This commit is contained in:
parent
241078096f
commit
d5bd76a3b7
6 changed files with 128 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ pub mod enemy;
|
|||
pub mod gun;
|
||||
pub mod player;
|
||||
|
||||
#[derive(Component, Copy, Clone)]
|
||||
#[derive(Component, Copy, Clone, PartialEq, Eq)]
|
||||
pub enum Factions {
|
||||
PlayerFaction,
|
||||
EnemyFaction,
|
||||
|
|
@ -39,7 +39,7 @@ impl Plugin for ShipsPlugin {
|
|||
player::player_movement_system.run_if(in_state(GameState::Game)),
|
||||
player::player_shooting_system.run_if(in_state(GameState::Game)),
|
||||
gun::gun_shooting_system.run_if(in_state(GameState::Game)),
|
||||
enemy::enemy_ai_system,
|
||||
enemy::enemy_ai_system.run_if(in_state(GameState::Game)),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue