Browse Source

scale update

master
Jørn Guldberg 11 months ago
parent
commit
f31e308ee0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      julespil/game.py

+ 2
- 2
julespil/game.py 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

Loading…
Cancel
Save