Updated libstormgames. Fixed death sounds following player. Fixed volume keys in survival mode.
This commit is contained in:
@@ -257,10 +257,10 @@ class Enemy(Object):
|
||||
# Award points
|
||||
self.level.levelScore += totalPoints
|
||||
|
||||
# Play death sound if available using positional audio
|
||||
deathSound = f"{self.enemyType}_dies"
|
||||
if deathSound in self.sounds:
|
||||
self.channel = obj_play(self.sounds, deathSound, self.level.player.xPos, self.xPos, loop=False)
|
||||
# Create a DeathSound object to play death sound at fixed position
|
||||
from src.death_sound import DeathSound
|
||||
deathSoundObj = DeathSound(self.xPos, self.yPos, self.enemyType, self.sounds)
|
||||
self.level.objects.append(deathSoundObj)
|
||||
|
||||
# Handle witch-specific drops
|
||||
if self.enemyType == "witch":
|
||||
|
||||
Reference in New Issue
Block a user