From 6ce5e0a4630be97c8fddf1ba22023b0529225a40 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 14 May 2015 13:21:10 +0100 Subject: [PATCH] You can now turn OP mode off --- game.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/game.py b/game.py index c2cb128..93e9034 100644 --- a/game.py +++ b/game.py @@ -86,7 +86,12 @@ def play(window, options): Sounds["main"].stop() Sounds["OP"].play(loops=-1) player.OP = True - else: Sounds["OP"].stop() + player.change_colour((255,96,0)) + elif player.OP: + Sounds["OP"].stop() + Sounds["main"].play(loops=-1) + player.OP = False + player.reset_image() keys = pygame.key.get_pressed() if keys[pygame.K_RIGHT] or keys[pygame.K_d]: @@ -166,9 +171,6 @@ def play(window, options): sleep(0.75) Sounds["main"].set_volume(1.0) - if player.OP: - player.change_colour((255,96,0)) #override colour change if changed before - update_score(window, player.score) update_level(window, player.level) update_lives(window, player.lives)