color changes
This commit is contained in:
parent
eb6e421473
commit
c8999fb861
13
gametest.py
13
gametest.py
@ -28,13 +28,14 @@ greenColor = pygame.Color(42, 217, 13)
|
||||
blackColor = pygame.Color(0, 0, 0)
|
||||
yellowColor = pygame.Color(230, 198, 4)
|
||||
grayColor = pygame.Color(128, 128, 128)
|
||||
brownColor = pygame.Color(228, 141, 26)
|
||||
brownColor = pygame.Color(192, 119, 22)
|
||||
mainFontColor = greenColor
|
||||
|
||||
#fonts
|
||||
font1 = pygame.font.Font('freesansbold.ttf', 90)
|
||||
font2 = pygame.font.Font('freesansbold.ttf', 65)
|
||||
|
||||
font3 = pygame.font.Font('freesansbold.ttf', 45
|
||||
)
|
||||
# preset highscores
|
||||
|
||||
hs1_name = "Fritz"
|
||||
@ -204,19 +205,19 @@ while True: # main loop
|
||||
header_rectangle = header_surface.get_rect()
|
||||
header_rectangle.topleft = (600, 280)
|
||||
|
||||
highscore_header_surface = font1.render('Highscores:', True, mainFontColor)
|
||||
highscore_header_surface = font2.render('Highscores:', True, mainFontColor)
|
||||
highscore_header_rectangle = highscore_header_surface.get_rect()
|
||||
highscore_header_rectangle = (670, 410)
|
||||
|
||||
score1_surface = font2.render(hs1_name + ": " + str(hs1_time) + 's', True, yellowColor)
|
||||
score1_surface = font3.render(hs1_name + ": " + str(hs1_time) + 's', True, yellowColor)
|
||||
score1_rectangle = score1_surface.get_rect()
|
||||
score1_rectangle.topleft = (670, 500)
|
||||
|
||||
score2_surface = font2.render(hs2_name + ": " + str(hs2_time) + 's', True, grayColor)
|
||||
score2_surface = font3.render(hs2_name + ": " + str(hs2_time) + 's', True, grayColor)
|
||||
score2_rectangle = score2_surface.get_rect()
|
||||
score2_rectangle.topleft = (670, 590)
|
||||
|
||||
score3_surface = font2.render(hs3_name + ": " + str(hs3_time) + 's', True, brownColor)
|
||||
score3_surface = font3.render(hs3_name + ": " + str(hs3_time) + 's', True, brownColor)
|
||||
score3_rectangle = score3_surface.get_rect()
|
||||
score3_rectangle.topleft = (670, 680)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user