diff --git a/libstormgames.py b/libstormgames.py index 817a258..82d82ad 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -348,6 +348,20 @@ def game_menu(sounds, *options): except: pass if options[i] != "donate": pygame.mixer.music.unpause() + if event.key == pygame.K_HOME and i != 0: + i = 0 + try: + sounds['menu-move'].play() + except: + pass + if options[i] != "donate": pygame.mixer.music.unpause() + if event.key == pygame.K_END and i != len(options) - 1: + i = len(options) -1 + try: + sounds['menu-move'].play() + except: + pass + if options[i] != "donate": pygame.mixer.music.unpause() if event.key == pygame.K_RETURN: try: j = -1