scale update

This commit is contained in:
Jørn Guldberg committed 2023-05-24 16:38:21 +02:00
1 parent ee122a8dda
commit f31e308ee0
1 file changed
+2 -2
+2 -2
View File
@@ -52,7 +52,7 @@ pygame.display.set_caption("Game")
pygame.font.init()
my_font = pygame.font.SysFont("Arial", screen_scale_w(30, screen_scale_factor_w) , bold=True, italic=False)
you_died_font = pygame.font.SysFont("Arial", screen_scale_w(30, screen_scale_factor_w), bold=True, italic=False)
you_died_font = pygame.font.SysFont("Arial", screen_scale_w(300, screen_scale_factor_w), bold=True, italic=False)
exit_text_surface = my_font.render("Exit", False, TEXT_COLOR)
@@ -536,7 +536,7 @@ while True:
DISPLAYSURF.blit(bg, (0, 0))
if heart.lives <= 0:
DISPLAYSURF.blit(you_died, (400, 400))
DISPLAYSURF.blit(you_died, (screen_scale_w(100, screen_scale_factor_w), screen_scale_h(400, screen_scale_factor_h)))
pygame.display.update()
FramePerSec.tick(10)
frame_count = (frame_count + 1) % 16