Пример #1
0
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()
Пример #2
0
def main():
    res = Resources()
    app = Application((800, 600), "Editor", resizable=True)
    app.process(Editor())
    app.run()