Draw the score on the screen
(screen, score, x, y)
| 152 | |
| 153 | |
| 154 | def draw_score(screen, score, x, y): |
| 155 | """Draw the score on the screen""" |
| 156 | font = pygame.font.Font(None, 36) |
| 157 | text = font.render(f"Score: {score}", True, WHITE) |
| 158 | screen.blit(text, (x, y)) |
| 159 | |
| 160 | |
| 161 | def draw_game_over(screen, x, y): |