added game icon to window
This commit is contained in:
parent
c013778d7e
commit
54814097d1
@ -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 |
BIN
pocket_friends/game_files/resources/images/icon/icon.ico
Normal file
BIN
pocket_friends/game_files/resources/images/icon/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
pocket_friends/game_files/resources/images/icon/icon.png
Normal file
BIN
pocket_friends/game_files/resources/images/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
Loading…
Reference in New Issue
Block a user