changeset 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 10a2bf50e005
files gamelib/engine.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/engine.py	Sun Aug 30 16:42:44 2009 +0000
+++ b/gamelib/engine.py	Sun Aug 30 16:47:17 2009 +0000
@@ -33,6 +33,10 @@
         self.game.main_menu_app.paint(screen)
         pygame.display.flip()
 
+    def update(self, screen):
+        update = self.game.main_menu_app.update(screen)
+        pygame.display.update(update)
+
 class DayState(State):
     def event(self, e):
         if events_equal(e, START_NIGHT):