Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Aug 4, 2024
1 parent f3b357e commit 694e83c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ pub struct Player;

pub fn create_app() -> App {
let mut app = App::new();
//app.add_systems(Startup, add_player);
app.add_systems(Startup, |mut commands: Commands| {
commands.spawn(Player);
});
app.add_systems(Startup, add_player);
app.update();
app
}
/*
fn add_player(mut commands: Commands) {
commands.spawn(Player);
}
*/

#[cfg(test)]
fn count_n_players(app: &mut App) -> usize {
let mut query = app.world_mut().query::<&Player>();
Expand Down

0 comments on commit 694e83c

Please sign in to comment.