haw-gj13-game/src/game/player.rs

15 lines
321 B
Rust
Raw Normal View History

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 {});
}