scale update
This commit is contained in:
1 parent
ee122a8dda
commit
f31e308ee0
1 file changed
+2
-2
+2
-2
@@ -52,7 +52,7 @@ pygame.display.set_caption("Game")
|
|||||||
|
|
||||||
pygame.font.init()
|
pygame.font.init()
|
||||||
my_font = pygame.font.SysFont("Arial", screen_scale_w(30, screen_scale_factor_w) , bold=True, italic=False)
|
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)
|
exit_text_surface = my_font.render("Exit", False, TEXT_COLOR)
|
||||||
@@ -536,7 +536,7 @@ while True:
|
|||||||
|
|
||||||
DISPLAYSURF.blit(bg, (0, 0))
|
DISPLAYSURF.blit(bg, (0, 0))
|
||||||
if heart.lives <= 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()
|
pygame.display.update()
|
||||||
FramePerSec.tick(10)
|
FramePerSec.tick(10)
|
||||||
frame_count = (frame_count + 1) % 16
|
frame_count = (frame_count + 1) % 16
|
||||||
|
|||||||
Reference in new issue
Block a user