Compare commits
2 commits
main
...
Developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| d09d6b6e1a | |||
| edbefc0f58 |
2 changed files with 2 additions and 0 deletions
BIN
audio/soundeffects/door_unlock.mp3
Normal file
BIN
audio/soundeffects/door_unlock.mp3
Normal file
Binary file not shown.
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue