Move seed check to FixedUpdate
This commit is contained in:
parent
4a097e7ed8
commit
50ef78f7aa
1 changed files with 4 additions and 1 deletions
|
@ -73,10 +73,13 @@ impl Plugin for AppSettings {
|
||||||
(setup_player, setup_balls, setup_walls).after(setup_from_seed),
|
(setup_player, setup_balls, setup_walls).after(setup_from_seed),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
.add_systems(
|
||||||
|
FixedUpdate,
|
||||||
|
check_for_seed.run_if(in_state(AppState::Loading)),
|
||||||
|
)
|
||||||
.add_systems(
|
.add_systems(
|
||||||
Update,
|
Update,
|
||||||
(
|
(
|
||||||
check_for_seed.run_if(in_state(AppState::Loading)),
|
|
||||||
(move_player, move_camera.after(move_player), zoom_camera)
|
(move_player, move_camera.after(move_player), zoom_camera)
|
||||||
.run_if(in_state(AppState::InGame)),
|
.run_if(in_state(AppState::InGame)),
|
||||||
quit.run_if(input_pressed(KeyCode::KeyQ)),
|
quit.run_if(input_pressed(KeyCode::KeyQ)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue