Extra life added, fixed sounds to use the new functions for volume control Other various improvements.
This commit is contained in:
@@ -21,7 +21,7 @@ class CoffinObject(Object):
|
||||
"""Handle being hit by the player's weapon"""
|
||||
if not self.is_broken:
|
||||
self.is_broken = True
|
||||
self.sounds['coffin_shatter'].play()
|
||||
play_sound(self.sounds['coffin_shatter'])
|
||||
self.level.player.stats.update_stat('Coffins broken', 1)
|
||||
self.level.player.stats.update_stat('Coffins remaining', -1)
|
||||
|
||||
|
Reference in New Issue
Block a user