Ejemplo n.º 1
0
def main():
    pyglet.clock.schedule(lambda dt: reactor.resume())
    pyglet.clock.schedule(anim.add_time)

    director.init(resizable=True, width=1024, height=768)
    menu_scene = Scene(HierarchicalMenu(MainMenu()))
    director.run(menu_scene)
Ejemplo n.º 2
0
def main():
    pyglet.clock.schedule(lambda dt: reactor.resume())
    pyglet.clock.schedule(anim.add_time)

    director.init(resizable=True, width=1024, height=768)
    menu_scene = Scene(HierarchicalMenu(MainMenu()))
    director.run(menu_scene)
Ejemplo n.º 3
0
def main():
    # Allow print statements to go to the log
    import sys
    sys.stdout = sys.stderr

    pyglet.clock.schedule(lambda dt: reactor.resume())
    pyglet.clock.schedule(anim.add_time)

    director.init(resizable=True, width=1024, height=768)
    menu_scene = Scene(HierarchicalMenu(MainMenu()))
    director.run(menu_scene)
Ejemplo n.º 4
0
def main():
    p1_name = config.get("main", "playername")
    p2_name = config.get("solitaire", "playername")
    p1_deckfile = config.get("main", "deckfile")
    p2_deckfile = config.get("solitaire", "deckfile") 
    players = [(p1_name, load_deckfile(p1_deckfile)), (p2_name, load_deckfile(p2_deckfile))]

    pyglet.clock.schedule(lambda dt: reactor.resume())
    pyglet.clock.schedule(anim.add_time)

    director.init(resizable=True, width=1024, height=768)
    director.run(start_solitaire(p1_name, players))
Ejemplo n.º 5
0
def main():
    p1_name = config.get("main", "playername")
    p2_name = config.get("solitaire", "playername")
    p1_deckfile = config.get("main", "deckfile")
    p2_deckfile = config.get("solitaire", "deckfile")
    players = [(p1_name, load_deckfile(p1_deckfile)),
               (p2_name, load_deckfile(p2_deckfile))]

    pyglet.clock.schedule(lambda dt: reactor.resume())
    pyglet.clock.schedule(anim.add_time)

    director.init(resizable=True, width=1024, height=768)
    director.run(start_solitaire(p1_name, players))
Ejemplo n.º 6
0
def on_exit():
    reactor.stop()
    reactor.resume()
Ejemplo n.º 7
0
def on_exit():
    reactor.stop()
    reactor.resume()