From aa6a8a23fa968aeefaf544bcce6f052d17170311 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 16 Feb 2025 17:25:50 -0500 Subject: [PATCH] Pause game added, bound to backspace. --- libstormgames | 2 +- wicked_quest.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstormgames b/libstormgames index 8bfe968..2f791da 160000 --- a/libstormgames +++ b/libstormgames @@ -1 +1 @@ -Subproject commit 8bfe968b4b67fa79fcfdd48f9ae1490f4c7b0a9f +Subproject commit 2f791da5b75c34070987ddf3a4bdbb4ea0eac785 diff --git a/wicked_quest.py b/wicked_quest.py index 69dc027..b86fa70 100755 --- a/wicked_quest.py +++ b/wicked_quest.py @@ -186,6 +186,8 @@ class WickedQuest: pygame.event.clear() self.player.scoreboard.add_high_score() + pygame.event.clear() + pygame.event.pump() cut_scene(self.sounds, "game_over") display_text(report) @@ -215,6 +217,8 @@ class WickedQuest: elif event.key in [pygame.K_CAPSLOCK, pygame.K_TAB]: self.runLock = not self.runLock speak("Run lock " + ("enabled." if self.runLock else "disabled.")) + elif event.key == pygame.K_BACKSPACE: + pause_game() # Volume controls (require Alt) elif altPressed: if event.key == pygame.K_PAGEUP: