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