comparison gamelib/engine.py @ 14:d7f295c06a4b

Split gameboard screen.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 30 Aug 2009 16:42:44 +0000
parents 8a7319e4853a
children b69d954f2f1d
comparison
equal deleted inserted replaced
13:f4b4d7f44cca 14:d7f295c06a4b
39 return NightState(self.game) 39 return NightState(self.game)
40 elif e.type is KEYDOWN and e.key == K_ESCAPE: 40 elif e.type is KEYDOWN and e.key == K_ESCAPE:
41 return MainMenuState(self.game) 41 return MainMenuState(self.game)
42 elif events_equal(e, GO_MAIN_MENU): 42 elif events_equal(e, GO_MAIN_MENU):
43 return MainMenuState(self.game) 43 return MainMenuState(self.game)
44 elif e.type is not QUIT:
45 self.game.gameboard.event(e)
44 46
45 def paint(self, screen): 47 def paint(self, screen):
46 self.game.gameboard.paint(screen) 48 self.game.gameboard.paint(screen)
47 pygame.display.flip() 49 pygame.display.flip()
48 50