def main(): # initialize pygame pygame.init() pygame.display.set_mode((1024, 768)) pygame.display.set_caption("Super Coin Get v1.0") # create game app = Application(MainMenu) try: app.run() except KeyboardInterrupt: app.quit() finally: pygame.display.quit() pygame.quit()
def main(): res = Resources() app = Application((800, 600), "Editor", resizable=True) app.process(Editor()) app.run()