From f31e308ee0607d69a190bb8f2434921c522e1c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20Guldberg?= Date: Wed, 24 May 2023 16:38:21 +0200 Subject: [PATCH] scale update --- julespil/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/julespil/game.py b/julespil/game.py index b67ecca..9b02172 100644 --- a/julespil/game.py +++ b/julespil/game.py @@ -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