Added player death sound.
This commit is contained in:
1 parent
ca24f706c1
commit
bf2ab7c883
2 files changed
+2
No files matched your search
Binary file not shown.
@@ -38,6 +38,7 @@ wasabi_img = pygame.image.load("sushi3.png").convert_alpha()
|
|||||||
wasabi_img = pygame.transform.smoothscale(wasabi_img, SUSHI_SIZE)
|
wasabi_img = pygame.transform.smoothscale(wasabi_img, SUSHI_SIZE)
|
||||||
|
|
||||||
chomp_sound = pygame.mixer.Sound("audio_chomp.mp3")
|
chomp_sound = pygame.mixer.Sound("audio_chomp.mp3")
|
||||||
|
meow_sound = pygame.mixer.Sound("audio_meow.mp3")
|
||||||
|
|
||||||
joystick = None
|
joystick = None
|
||||||
if pygame.joystick.get_count() > 0:
|
if pygame.joystick.get_count() > 0:
|
||||||
@@ -208,6 +209,7 @@ while True:
|
|||||||
|
|
||||||
if horizontal_overlap and obj['rect'].bottom >= tuna_mid_y:
|
if horizontal_overlap and obj['rect'].bottom >= tuna_mid_y:
|
||||||
if obj['wasabi']:
|
if obj['wasabi']:
|
||||||
|
meow_sound.play()
|
||||||
exploding = True
|
exploding = True
|
||||||
explode_start = None
|
explode_start = None
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user