Stats tracking updated. Work on skull storms. Enemy death sound added for goblins. Various updates and fixes.

This commit is contained in:
Storm Dragon
2025-02-04 00:28:50 -05:00
parent 1d033e067a
commit 4f7f5504d1
12 changed files with 323 additions and 47 deletions

View File

@@ -55,15 +55,15 @@ class SkullStorm(Object):
fallProgress = timeElapsed / skull['fall_duration']
currentY = self.yPos * (1 - fallProgress)
if skull['channel'] is None or not skull['channel'].get_busy():
skull['channel'] = play_random_falling(
self.sounds,
'falling_skull',
player.xPos,
skull['x'],
self.yPos,
currentY
)
skull['channel'] = play_random_falling(
self.sounds,
'falling_skull',
player.xPos,
skull['x'],
self.yPos,
currentY,
existingChannel=skull['channel']
)
# Check if we should spawn a new skull
if (len(self.activeSkulls) < self.maxSkulls and