Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
d09d6b6e1a Update classes.py
Door unlock sound added
2024-03-13 20:03:10 +00:00
edbefc0f58 Upload files to "audio/soundeffects"
door unlock sound für Johann
2024-03-13 19:57:54 +00:00
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View file

@ -377,6 +377,7 @@ class Room(GameObjects):
def update(self, objects):
door_unlock_sound = mixer.Sound('audio/soundeffects/door_unlock.mp3')
if objects is not None:
self.objects = objects
if not self.objects[1]:
@ -386,6 +387,7 @@ class Room(GameObjects):
self.locked = False
for door in self.doors:
door.update(False)
door_unlock_sound.play()
return
def draw(self, screen):