diff --git a/libstorm_games.py b/libstorm_games.py index deaf0e5..224fbe3 100755 --- a/libstorm_games.py +++ b/libstorm_games.py @@ -72,23 +72,6 @@ def initialize_gui(gameTitle): time.sleep(soundData['game-intro'].get_length()) return soundData -def display_message(info): - info.append("Press escape or enter to continue.") - info.reverse() - info.append("Use the up and down arrow keys to navigate this message.") - info.reverse() - i = 0 - speak(str(info[0:len(info)])) - while True: - event = pygame.event.wait() - if event.type == pygame.KEYDOWN: - if event.key == pygame.K_ESCAPE or event.key == pygame.K_RETURN: return - if event.key == pygame.K_DOWN and i < len(info) - 1: i = i + 1 - if event.key == pygame.K_UP and i > 0: i = i - 1 - speak(info[i]) - event = pygame.event.clear() - time.sleep(0.001) - def instructions(): # Read in the instructions file try: diff --git a/numnastics b/numnastics index ff0ae07..bcb1984 100755 --- a/numnastics +++ b/numnastics @@ -53,7 +53,7 @@ def game(mode): message.append("Your time was " + str(int(endTime / 60)) + " minute and " + str(round(endTime % 60, 2)) + " seconds.") else: message.append("Your time was " + str(int(endTime / 60)) + " minutes and " + str(round(endTime % 60, 2)) + " seconds.") - display_message(message) + display_text(message) sounds['win'].play() time.sleep(sounds['win'].get_length()) return "menu"