Skip to content

Commit

Permalink
game name and icon
Browse files Browse the repository at this point in the history
+
bug fixed
  • Loading branch information
KarinaRinna committed Jul 11, 2023
1 parent 9b8910f commit f287699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
snake = [(x,y)]
dx, dy = 0, 0
score = 0
fps = 5
fps = 7

pygame.init()
sc = pygame.display.set_mode([RES, RES])
Expand All @@ -20,6 +20,9 @@
font_end = pygame.font.SysFont('Arial', 66, bold=True)
img = pygame.image.load('1.jpeg').convert()
img2 = pygame.image.load('2.jpg').convert()
pygame.display.set_caption('Змейка') # имя приложения
icon = pygame.image.load('icon.png') # иконка
pygame.display.set_icon(icon)


while True:
Expand Down

0 comments on commit f287699

Please sign in to comment.