Compare commits
No commits in common. "bfa231b7480fe9ee8af50bda922eb2d6fa443861" and "8c4941d7ed8391e66b35da22f50970bc2159a72b" have entirely different histories.
bfa231b748
...
8c4941d7ed
9
bla.py
9
bla.py
|
@ -398,5 +398,12 @@ while running:
|
|||
|
||||
# Завершение работы Pygame
|
||||
pygame.quit()
|
||||
screen.blit(score_text, (10, 10))
|
||||
score_rect = score_text.get_rect(topleft=(10, 10))
|
||||
pygame.draw.rect(screen, (0, 255, 0), (score_rect.topleft, (score_rect.width, score_rect.height))) # Draw a green rectangle behind the score
|
||||
screen.blit(score_text, score_rect.topleft)
|
||||
pygame.display.flip()
|
||||
clock.tick(FPS)
|
||||
|
||||
# token: 8f195a885b18a96da6577884cc731f850f33a9e2
|
||||
# Завершение работы Pygame
|
||||
pygame.quit()
|
Binary file not shown.
Before Width: | Height: | Size: 2.3 MiB |
Loading…
Reference in New Issue