extract to file, primitive player system that is not actually run

This commit is contained in:
TudbuT 2024-11-22 22:14:13 +01:00
parent bc639c5f1d
commit c6f6415d8d
No known key found for this signature in database
GPG key ID: B3CF345217F202D3
3 changed files with 24 additions and 18 deletions

14
src/game/player.rs Normal file
View 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 {});
}