def do_event(self, event):
     if event.type == pygame.KEYUP:
         if event.key == pygame.K_RETURN:
             if self.allow_exit:
                 self.game.gotoScene(intro_scene.intro_scene(self.game))
     elif event.type == ALLOW_EXIT:
         self.allow_exit = True
         pygame.time.set_timer(ALLOW_EXIT, 0)
 def do_event(self, event):
     if event.type == pygame.KEYUP:
         if event.key == pygame.K_RETURN:
             if self.allow_exit:
                 self.game.gotoScene(intro_scene.intro_scene(self.game))
     elif event.type == ALLOW_EXIT:
         self.allow_exit = True
         pygame.time.set_timer(ALLOW_EXIT, 0)
def main():
    game = Game()
    game.gotoScene(intro_scene(game))
    game.run()