diff gamelib/main.py @ 105:65976205fc2d

Rough Stab at basic animation support
author Neil Muller <neil@dip.sun.ac.za>
date Tue, 24 Aug 2010 11:57:06 +0200
parents 322cbc0a8cce
children 5213b45fcc7e
line wrap: on
line diff
--- a/gamelib/main.py	Tue Aug 24 11:55:35 2010 +0200
+++ b/gamelib/main.py	Tue Aug 24 11:57:06 2010 +0200
@@ -18,13 +18,14 @@
 
 from menu import MenuScreen
 from gamescreen import GameScreen
-from constants import SCREEN
+from constants import SCREEN, FRAME_RATE
 
 class MainShell(Shell):
     def __init__(self, display):
         Shell.__init__(self, display)
         self.menu_screen = MenuScreen(self)
         self.game_screen = GameScreen(self)
+        self.set_timer(FRAME_RATE)
         self.show_screen(self.menu_screen)
 
 def main():