diff options
author | RaindropsSys <contact@minteck.org> | 2023-09-03 14:39:50 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-09-03 14:39:50 +0200 |
commit | 153d21ace9801ac665e2d7f99c967147d1214f29 (patch) | |
tree | f363dccf520fbc2c1670d2308b73294fa9ab5676 /src/window.py | |
parent | 6a20ab31ef4d9f6bb0e008b9f1b8d3fbeb6bd956 (diff) | |
download | blocks-153d21ace9801ac665e2d7f99c967147d1214f29.tar.gz blocks-153d21ace9801ac665e2d7f99c967147d1214f29.tar.bz2 blocks-153d21ace9801ac665e2d7f99c967147d1214f29.zip |
Updated 16 files and added 5 files (automated)
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/window.py b/src/window.py index fd35f39..4df6065 100644 --- a/src/window.py +++ b/src/window.py @@ -1,6 +1,13 @@ +import sys + import pygame def init(): pygame.display.set_caption("Blocks") - pygame.mouse.set_visible(False) - pygame.mouse.set_pos((0, 0))
\ No newline at end of file + + if sys.platform == "darwin": + pygame.display.set_icon(pygame.image.load('./assets/textures/icon-mac.png').convert_alpha()) + else: + pygame.display.set_icon(pygame.image.load('./assets/textures/icon.png').convert_alpha()) + + pygame.mouse.set_visible(True) |