Skip to content

Commit

Permalink
Fix a bug where the 'game over' SFX plays even though the SFX are dis…
Browse files Browse the repository at this point in the history
…abled.
  • Loading branch information
DKNorad committed Apr 18, 2024
1 parent 5623213 commit c1b8757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entities/Mario.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def gameOver(self):
srf.set_colorkey((255, 255, 255), pygame.RLEACCEL)
srf.set_alpha(128)
self.sound.music_channel.stop()
self.sound.music_channel.play(self.sound.death)
self.sound.play_sfx(self.sound.death)

for i in range(500, 20, -2):
srf.fill((0, 0, 0))
Expand Down

0 comments on commit c1b8757

Please sign in to comment.