From 64e66b34679268a2a47b2b37e368412b5cb5049e Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Sat, 15 Aug 2020 08:53:42 +0300 Subject: [PATCH] Timer on screen is better looking now --- Main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Main.py b/Main.py index 0493bd2..3342c1e 100644 --- a/Main.py +++ b/Main.py @@ -14,7 +14,6 @@ windowY = 832 window = pygame.display.set_mode((windowX,windowY)) icon = pygame.image.load('pics/logo.png') pygame.display.set_icon(icon) - font = pygame.font.Font('freesansbold.ttf', 46) bullet_image = pygame.image.load('pics/second_bullet.png') @@ -57,7 +56,7 @@ def play(): if player.out_of_area(): death_timer -= 1 print('death_timer',death_timer) - timertext_color = (255-death_timer,3.6*death_timer,10) + timertext_color = (255-death_timer-60,3.6*death_timer,10) text = font.render(str(death_timer), True, timertext_color) #Actual text window.blit(text,text_rect) if death_timer <= 1: