Mercurial > pyntnclick
diff pyntnclick/main.py @ 732:4f34b36ee7c5 pyntnclick
Add constants subclass to gamelib, and get the title + icon from it
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 15 Jan 2013 23:15:11 +0200 |
parents | d6ded808cc33 |
children | 94de2e71db13 |
line wrap: on
line diff
--- a/pyntnclick/main.py Tue Jan 15 22:57:41 2013 +0200 +++ b/pyntnclick/main.py Tue Jan 15 23:15:11 2013 +0200 @@ -154,9 +154,11 @@ sys.exit(1) else: pygame.display.set_mode(self.constants.screen, SWSURFACE) - pygame.display.set_icon(self.resource.get_image( - 'suspended_sentence24x24.png', basedir='icons')) - pygame.display.set_caption("Suspended Sentence") + if self.constants.icon: + pygame.display.set_icon(self.resource.get_image( + self.constants.icon, basedir='icons')) + if self.constants.title: + pygame.display.set_caption(self.constants.title) self.engine = Engine(self) # Initialize the special screens in the engine