comparison gamelib/engine.py @ 15:b69d954f2f1d

Add update call to main menu event
author Neil Muller <drnlmuller@gmail.com>
date Sun, 30 Aug 2009 16:47:17 +0000
parents d7f295c06a4b
children 6d6ab0c1479d
comparison
equal deleted inserted replaced
14:d7f295c06a4b 15:b69d954f2f1d
30 30
31 def paint(self, screen): 31 def paint(self, screen):
32 screen.fill((0,0,0)) 32 screen.fill((0,0,0))
33 self.game.main_menu_app.paint(screen) 33 self.game.main_menu_app.paint(screen)
34 pygame.display.flip() 34 pygame.display.flip()
35
36 def update(self, screen):
37 update = self.game.main_menu_app.update(screen)
38 pygame.display.update(update)
35 39
36 class DayState(State): 40 class DayState(State):
37 def event(self, e): 41 def event(self, e):
38 if events_equal(e, START_NIGHT): 42 if events_equal(e, START_NIGHT):
39 return NightState(self.game) 43 return NightState(self.game)