Update classes.py
Door unlock sound added
This commit is contained in:
parent
edbefc0f58
commit
d09d6b6e1a
1 changed files with 2 additions and 0 deletions
|
|
@ -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