comparison gamelib/main.py @ 37:d449c4674da8

Fix call to set mode.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sun, 22 Aug 2010 20:28:01 +0200
parents 0f25f7b9b37a
children 322cbc0a8cce
comparison
equal deleted inserted replaced
36:31a431f795e1 37:d449c4674da8
3 Contains the entry point used by the run_game.py script. 3 Contains the entry point used by the run_game.py script.
4 4
5 ''' 5 '''
6 6
7 import pygame 7 import pygame
8 from pygame.locals import SWSURFACE, SRCALPHA 8 from pygame.locals import SWSURFACE
9 from albow.dialogs import alert 9 from albow.dialogs import alert
10 from albow.shell import Shell 10 from albow.shell import Shell
11 11
12 import data
13 from menu import MenuScreen 12 from menu import MenuScreen
14 from gamescreen import GameScreen 13 from gamescreen import GameScreen
15 from constants import SCREEN 14 from constants import SCREEN
16 15
17 class MainShell(Shell): 16 class MainShell(Shell):
22 self.show_screen(self.menu_screen) 21 self.show_screen(self.menu_screen)
23 22
24 def main(): 23 def main():
25 pygame.display.init() 24 pygame.display.init()
26 pygame.font.init() 25 pygame.font.init()
27 display = pygame.display.set_mode(SCREEN, SRCALPHA) 26 display = pygame.display.set_mode(SCREEN, SWSURFACE)
28 shell = MainShell(display) 27 shell = MainShell(display)
29 shell.run() 28 shell.run()
30 29