From 7ae0ca4d3f7243d25d1e30a8fb9939627dd69b92 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 13 May 2015 09:30:46 +0100 Subject: [PATCH] Lives go red at 1 not 0!! --- game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.py b/game.py index 47e9e6f..9861460 100644 --- a/game.py +++ b/game.py @@ -23,7 +23,7 @@ def update_level(window, level, colour=HUD_COLOUR): def update_lives(window, lives, colour=HUD_COLOUR): font = pygame.font.SysFont(None, 30, bold=False) - window.blit(font.render("Lives Remaining: {}".format(int(lives)), True, colour if lives != 0 else (255,50,0)), (3.8*WINDOW_SIZE[0]/10, WINDOW_SIZE[1] - 30)) + window.blit(font.render("Lives Remaining: {}".format(int(lives)), True, colour if lives != 1 else (255,50,0)), (3.8*WINDOW_SIZE[0]/10, WINDOW_SIZE[1] - 30)) def initialise(menu, options): pygame.mixer.pre_init(44100, -16, 2, 2048)