changeset 36:38fdd52fc932

Add the icon
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sat, 17 Mar 2012 11:46:25 +0100
parents a7d7dd55e34e
children 39e449202c9f
files jelly/display.py jelly/jelly.png setup.py
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jelly/display.py	Sat Mar 17 11:04:24 2012 +0100
+++ b/jelly/display.py	Sat Mar 17 11:46:25 2012 +0100
@@ -28,6 +28,7 @@
         self.screen = pygame.display.set_mode((640, 480))
         self.first_draw = True
         self.tiles = resource.load_tiles('jelly.png', 32, 32)
+        pygame.display.set_icon(self.tiles[-1])
         for tile in self.tiles[36:40]:
             tile.set_alpha(192)
         for tile in self.tiles[46:50]:
Binary file jelly/jelly.png has changed
--- a/setup.py	Sat Mar 17 11:04:24 2012 +0100
+++ b/setup.py	Sat Mar 17 11:46:25 2012 +0100
@@ -21,12 +21,15 @@
     options = {
         'py2exe': {
             'bundle_files': 1,
-            'includes': 'jelly',
+            'packages': 'jelly',
+            'compressed': True,
+            'ascii': True,
         },
     },
     windows = [
         {
             'script': "run_jelly.py",
+            'icon_resources': [(1, "resources/jelly.ico")]
         }
     ],
     zipfile = None,