Commits

Radomir Dopieralski committed cbf0a6e

Make the game runnable as zip file

  • Participants
  • Parent commits 6863f92

Comments (0)

Files changed (6)

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from jelly import Game
+
+Game().run()

jelly/__main__.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from jelly import Game
+
+Game().run()
     def render_image(self, image_file):
         self.first_draw = True
         self.fog = None
-        self.background = pygame.image.load(image_file).convert()
+        self.background = resource.load_image(image_file)
         self.sprites = SortedUpdates()
         self.hud = SortedUpdates()
         self.shadows = pygame.sprite.RenderUpdates()
             raise util.QuitGame()
 
     def start(self):
-        self.display.render_image('jelly/title.png')
+        self.display.render_image('title.png')
         self.game_menu()
 
     def game_over(self):
-        self.display.render_image('jelly/dead.png')
+        self.display.render_image('dead.png')
         self.game_menu()
 
     def victory(self):
-        self.display.render_image('jelly/finish.png')
+        self.display.render_image('finish.png')
         self.game_menu()
 
     def next_level(self):

run_jelly.py

-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-from jelly import Game
-
-Game().run()
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
+import glob
 from setuptools import setup
 
 setup(
     options = {
         'py2exe': {
             'bundle_files': 1,
+            'includes': 'jelly',
         },
     },
     windows = [