Lives go red at 1 not 0!!
This commit is contained in:
parent
c91a7e8359
commit
7ae0ca4d3f
1 changed files with 1 additions and 1 deletions
2
game.py
2
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)
|
||||
|
|
Reference in a new issue