1
Fork 0

changed starting sounds

This commit is contained in:
Jake Howard 2015-05-12 22:46:47 +01:00
parent 1784865b1a
commit cea485736e

View file

@ -28,12 +28,11 @@ def update_lives(window, lives, colour=HUD_COLOUR):
def initialise(menu, options): def initialise(menu, options):
pygame.mixer.pre_init(44100, -16, 2, 2048) pygame.mixer.pre_init(44100, -16, 2, 2048)
pygame.init() pygame.init()
init_sounds()
window = pygame.display.set_mode(WINDOW_SIZE) window = pygame.display.set_mode(WINDOW_SIZE)
exit_code = play(window, options) # Run main game loop exit_code = play(window, options) # Run main game loop
for key, value in Sounds.items(): for key, value in Sounds.items():
value.stop() value.fadeout(500)
logging.debug("Game Exited with code {}".format(exit_code)) logging.debug("Game Exited with code {}".format(exit_code))
if exit_code != "QUIT": sleep(1) if exit_code != "QUIT": sleep(1)