Skip to content

Commit 256ebbc

Browse files
committed
add and refactor game menus
- add pause menu closes #55 - add gamepad support for game over screen #63 - add ship destruction closes #27
1 parent 03323ab commit 256ebbc

File tree

8 files changed

+661
-315
lines changed

8 files changed

+661
-315
lines changed

src/audio/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ fn on_play_soundtrack_event(
8989
};
9090

9191
for audio_player_entity in audio_player.iter_mut() {
92+
if audio_player_entity.1.0 == track_handle {
93+
return;
94+
}
9295
commands.entity(audio_player_entity.0).despawn();
9396
}
9497

0 commit comments

Comments
 (0)