Compare commits
3 Commits
8c4941d7ed
...
bfa231b748
Author | SHA1 | Date |
---|---|---|
|
bfa231b748 | |
|
75aae605fc | |
|
a1f1b2a7da |
9
bla.py
9
bla.py
|
@ -398,12 +398,5 @@ while running:
|
||||||
|
|
||||||
# Завершение работы Pygame
|
# Завершение работы Pygame
|
||||||
pygame.quit()
|
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)
|
|
||||||
|
|
||||||
# Завершение работы Pygame
|
# token: 8f195a885b18a96da6577884cc731f850f33a9e2
|
||||||
pygame.quit()
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.3 MiB |
Loading…
Reference in New Issue