fixed score table, added music folder

main
Your Name 2024-03-01 15:01:20 +02:00
parent e7017b77ed
commit 5fbc498b03
3 changed files with 3 additions and 4 deletions

Binary file not shown.

View File

@ -17,7 +17,7 @@ space = pygame.image.load('SPACE.jpg')
hangar = pygame.image.load('HANGAR.jpg') hangar = pygame.image.load('HANGAR.jpg')
mixer.music.load("background.wav") mixer.music.load("music/background.mp3")
mixer.music.play(-1) mixer.music.play(-1)
@ -173,7 +173,7 @@ while running:
scene = "best_score" scene = "best_score"
case "best_score": case "best_score":
screen.blit(hangar, (0, 0)) screen.blit(hangar, (0, 0))
print_best_score(best_score[difficulty]) print_best_score(best_score)
# if pressed, go back to menu # if pressed, go back to menu
if back_button.draw(screen): if back_button.draw(screen):
scene = "menu" scene = "menu"
@ -263,8 +263,7 @@ while running:
temp = "hard" temp = "hard"
case 3: case 3:
temp = "insane" temp = "insane"
draw_text("Best score: "+temp, font, TEXT_COL, 400, 150) print_best_score(best_score)
print_best_score(best_score[difficulty])
draw_text("Press TAB to resume", smaller_font, TEXT_COL, 350, 550) draw_text("Press TAB to resume", smaller_font, TEXT_COL, 350, 550)
case _: case _:
screen.blit(space, (0, 0)) screen.blit(space, (0, 0))