def show_splash_screen(self): """ Show the splash screen followed by and unending loop of the main menu. :return: """ Audio.start_music() GuiUtilities.show_splash(self.surface_display) while True: self.show_main_menu()
def _initialize(self): super(MainMenuInterface, self)._initialize() Audio.start_music() # Splash screen if INTERFACE.SHOW_SPLASH_SCREEN: GuiUtilities.show_splash(self.surface_display) # Version Number self.surface_version = GuiUtilities.FONT_PANEL.render(self.version_number, 1, COLORS.PANEL_FONT) self.version_position = (10, self.surface_display.get_height() - self.surface_version.get_height() - 10) # Menu self.options = ['New game', 'Controls', 'Quit'] self.keys = ['n', 'c', 'q'] self.handlers = [self.event_new_game, self.event_show_controls, self.event_quit]