Skip to content

Commit

Permalink
Slightly changed the code for more optimisation, and wanted to declar…
Browse files Browse the repository at this point in the history
…e that is a MINOR update.
  • Loading branch information
Spacexplorer11 committed Sep 21, 2024
1 parent 7fb4e02 commit c79dcbb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions space_dodge/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,7 @@ def main():
pygame.time.delay(5000)
main()
break
if mute:
pygame.mixer.music.pause()
elif not mute:
pygame.mixer.music.unpause()
pygame.mixer.music.pause() if mute else pygame.mixer.music.unpause()

if not running:
save_object(highscore) if score >= highscore else None
Expand Down

0 comments on commit c79dcbb

Please sign in to comment.