Mercurial > boomslang
comparison pyntnclick/main.py @ 580:27809609eeca pyntnclick
Allow different image basedir.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 16:22:56 +0200 |
parents | 1b1ab71535bd |
children | 7e4a20eb78b8 |
comparison
equal
deleted
inserted
replaced
579:071a93441995 | 580:27809609eeca |
---|---|
102 # debug the specified scene | 102 # debug the specified scene |
103 self._initial_scene = opts.scene | 103 self._initial_scene = opts.scene |
104 self._debug_rects = opts.rects | 104 self._debug_rects = opts.rects |
105 display = pygame.display.set_mode(self.constants.screen, | 105 display = pygame.display.set_mode(self.constants.screen, |
106 SWSURFACE) | 106 SWSURFACE) |
107 pygame.display.set_icon(pygame.image.load( | 107 pygame.display.set_icon(self.resource.load_image( |
108 self.resource.get_resource_path('icons/suspended_sentence24x24' | 108 'suspended_sentence24x24.png', basedir='icons')) |
109 '.png'))) | |
110 pygame.display.set_caption("Suspended Sentence") | 109 pygame.display.set_caption("Suspended Sentence") |
111 shell = MainShell(display, self.initial_state, | 110 shell = MainShell(display, self.initial_state, |
112 self.constants.frame_rate) | 111 self.constants.frame_rate) |
113 try: | 112 try: |
114 shell.run() | 113 shell.run() |