Skip to content

Commit

Permalink
Potential fix for "music wind-up"
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Aug 26, 2022
1 parent 275fdb5 commit cfe508d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,9 @@ fn main() {
.init_resource::<Zoom>()
.add_event::<FinishedEvent>()
.add_system_set(SystemSet::on_exit(GameState::Loading).with_system(spawn_camera))
.add_system_set(
SystemSet::on_enter(GameState::Decorating)
.with_system(setup_game)
.with_system(music),
)
.add_system_set(SystemSet::on_enter(GameState::Decorating).with_system(setup_game))
.add_system_set(SystemSet::on_update(GameState::Decorating).with_system(decorate_track))
.add_system_set(SystemSet::on_enter(GameState::MainMenu).with_system(music))
.add_system_set(SystemSet::on_enter(GameState::Playing).with_system(spawn_player))
.add_system_set_to_stage(
CoreStage::PostUpdate,
Expand Down

0 comments on commit cfe508d

Please sign in to comment.