Pause game added, bound to backspace.

This commit is contained in:
Storm Dragon
2025-02-16 17:25:50 -05:00
parent 5381d35222
commit aa6a8a23fa
2 changed files with 5 additions and 1 deletions

View File

@@ -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: