added game icon to window

This commit is contained in:
Nick Dyer 2021-05-30 00:16:57 -04:00
parent c013778d7e
commit 54814097d1
4 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ def game():
# Only really useful for PCs. Does nothing on the Raspberry Pi.
pygame.display.set_caption('Pocket Friends {0}'.format(pocket_friends.__version__))
# Add an icon to the pygame window.
icon = pygame.image.load(script_dir + '/resources/images/icon/icon.png').convert_alpha()
pygame.display.set_icon(icon)
clock = pygame.time.Clock()
# Font used for small text in the hardware. Bigger text is usually image files.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB