def __init__(self, display): Shell.__init__(self, display) self.create_screens() self.menu_screen = Start(self) self.set_timer(frame_time) self.show_menu() self.create_screens()
def __init__(self, **kwargs): pygame.init() self.settings = Settings(**kwargs) pygame.display.set_caption('Pyge') screen_info = pygame.display.Info() self.set_icon() display = pygame.display.set_mode(self.settings.get('window_res'), pygame.RESIZABLE) #pygame.display.toggle_fullscreen() Shell.__init__(self, display) self.pyge = Pyge(self.settings) self.create_screens() self.create_game() self.set_timer(self.settings.get('frame_rate'))
def __init__(self, display): Shell.__init__(self, display) self.create_screens() self.menu_screen = MenuScreen(self) # Do this last self.set_timer(frame_time) self.show_menu()
def __init__(self, display): Shell.__init__(self, display) self.create_demo_screens() self.menu_screen = MenuScreen(self) # Do this last self.set_timer(frame_time) self.show_menu()