Complete icon loading, tidy resource file-names, and begin on splash screen
[base2-runner.git] / base2-runner.py
index 091c75b..7937a84 100755 (executable)
@@ -28,10 +28,7 @@ class Base2Runner:
   self.background_colour = (20, 20, 64)
   if 'icon' in self.myGame.resources:
    if self.debug: engine.debug_pr("pygame.image.get_extended()=%r" % pygame.image.get_extended())
-   # pygame.display.set_mode((1,1), self.flags, self.depth) # needed simply to use convert_alpha() on icon
-   self.icon_image = pygame.image.load(self.myGame.resources['icon']) #.convert_alpha()
-   # pygame.display.quit() # need to close display now that icon has been converted
-   # pygame.display.init() # and now re-initialise the display!
+   self.icon_image = pygame.image.load(self.myGame.resources['icon'])
    pygame.display.set_icon(self.icon_image)
 
  def play(self):
@@ -149,5 +146,6 @@ if __name__ == '__main__':
  resources['path'] = 'resources'
  resources['icon'] = 'base2runner-icon.png'
  resources['background'] = 'binary-1024x1024.jpg'
+ resources['splash'] = 'base2runner.jpg'
  resources['soundtrack'] = 'Music'
  main(900, 600, "BaseĀ² Runner", resources, debug=True)