1
Fork 0

Lives go red at 1 not 0!!

This commit is contained in:
Jake Howard 2015-05-13 09:30:46 +01:00
parent c91a7e8359
commit 7ae0ca4d3f

View file

@ -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)