extract to file, primitive player system that is not actually run
This commit is contained in:
parent
bc639c5f1d
commit
c6f6415d8d
3 changed files with 24 additions and 18 deletions
14
src/game/player.rs
Normal file
14
src/game/player.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use bevy::prelude::*;
|
||||
use bevy_rapier2d::prelude::*;
|
||||
|
||||
use crate::AppState;
|
||||
#[derive(Component)]
|
||||
struct Player {}
|
||||
|
||||
pub(super) fn player_plugin(app: &mut App) {
|
||||
//app.add_systems(OnEnter(AppState::InGame), add_player.in_set(GameplaySet));
|
||||
}
|
||||
|
||||
pub fn add_player(mut commands: Commands) {
|
||||
commands.spawn(Player {});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue