From 5826aa4580aeb34b02994cff95b1a82319624d21 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 17 Sep 2025 15:34:01 -0400 Subject: [PATCH] Updated libstormgames. Added end of skull storm sound. Fixed inconsistancy with escape key in survival as apposed to story mode. --- libstormgames | 2 +- sounds/skull_storm_ends.ogg | 3 +++ src/skull_storm.py | 1 + wicked_quest.py | 5 ++++- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 sounds/skull_storm_ends.ogg diff --git a/libstormgames b/libstormgames index acb899e..0bbf35a 160000 --- a/libstormgames +++ b/libstormgames @@ -1 +1 @@ -Subproject commit acb899e6eb054430bae1521bc9926dbd6e43203a +Subproject commit 0bbf35a4c51a1e72510a05bd3dab3e3ed7dfff0b diff --git a/sounds/skull_storm_ends.ogg b/sounds/skull_storm_ends.ogg new file mode 100644 index 0000000..ce36411 --- /dev/null +++ b/sounds/skull_storm_ends.ogg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36359cf0b78367d31a0e2da134f9b6496049ee4a6ec5cf27b818871f4ff3bcb2 +size 63008 diff --git a/src/skull_storm.py b/src/skull_storm.py index 034d32f..93b1db2 100644 --- a/src/skull_storm.py +++ b/src/skull_storm.py @@ -38,6 +38,7 @@ class SkullStorm(Object): elif not inRange and self.playerInRange: # Only speak when actually leaving range # Player just left range self.playerInRange = False + play_sound(self.sounds["skull_storm_ends"]) speak("Skull storm ended.") # Clear any active skulls when player leaves the range diff --git a/wicked_quest.py b/wicked_quest.py index a42f64a..d67b762 100755 --- a/wicked_quest.py +++ b/wicked_quest.py @@ -230,7 +230,7 @@ class WickedQuest: speak(f"{player.get_health()} health of {player.get_max_health()}") if keys[pygame.K_i]: if self.currentLevel.levelId == 999: - speak(f"Wave {self.survivalWave}. {player.get_health()} health of {player.get_max_health()}. {int(self.currentLevel.levelScore)} points on this level so far. {player.get_lives()} lives remaining.") + speak(f"Wave {self.survivalWave}. {player.get_health()} health of {player.get_max_health()}. {int(self.currentLevel.levelScore)} points on this wave so far. {player.get_lives()} lives remaining.") else: speak(f"Level {self.currentLevel.levelId}, {self.currentLevel.levelName}. {player.get_health()} health of {player.get_max_health()}. {int(self.currentLevel.levelScore)} points on this level so far. {player.get_lives()} lives remaining.") if keys[pygame.K_l]: @@ -384,6 +384,9 @@ class WickedQuest: pygame.mixer.music.stop() except: pass + # Calculate total time and show game over sequence + totalTime = pygame.time.get_ticks() - self.gameStartTime + self.display_game_over(totalTime) return elif event.key in [pygame.K_CAPSLOCK, pygame.K_TAB]: self.runLock = not self.runLock