Пример #1
0
 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()
Пример #2
0
    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'))
Пример #3
0
 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'))
Пример #4
0
	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()
Пример #5
0
	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()