diff --git a/__init__.py b/__init__.py index 5cf4d70..16e61a1 100755 --- a/__init__.py +++ b/__init__.py @@ -315,6 +315,15 @@ def play_bgm(music_file): except Exception as e: pass +def pause_game(): + """Pauses the game""" + speak("Game paused, press backspace to resume.") + while True: + event = pygame.event.wait() + if event.type == pygame.KEYDOWN and event.key == pygame.K_BACKSPACE: return + + + def get_input(prompt="Enter text:", text=""): """Display a dialog box for text input.