Skip to content

Commit 74085e7

Browse files
authored
added icon
1 parent a13c668 commit 74085e7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pong.png

90.5 KB
Loading

pong.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def ball_reset():
8585
screen_width = 1280
8686
screen_height = 960
8787
screen = pygame.display.set_mode((screen_width, screen_height))
88-
pygame.display.set_caption('pong')
88+
pygame.display.set_caption("pong")
89+
icon = pygame.image.load("pong.png")
90+
pygame.display.set_icon(icon)
8991

9092
#objects
9193
ball = pygame.Rect(screen_width/2 -15, screen_height/2 -15, 30, 30)

0 commit comments

Comments
 (0)