summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py11
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)