Exemplo n.º 1
0
def main():
    script_dir = os.path.dirname(os.path.realpath(__file__))

    pyglet.resource.path = [join(script_dir, '..')]
    pyglet.resource.reindex()

    director.director.init(width=800, height=650, caption="Match 3")

    scene = Scene()
    scene.add(MultiplexLayer(MainMenu()), z=1)

    director.director.run(scene)
Exemplo n.º 2
0
def preinit():
    
    screen = Screen.open()
    test1.intro(screen)
    junk = Frame(screen,
                                        screen.height * 2 // 3,
                                        screen.width * 2 // 3,
                                        hover_focus=True,
                                        has_border=True,
                                        title="Game Settings",
                                        reduce_cpu=False)
    oldpalette = copy.deepcopy(junk.palette)
    Scenes = []
    debug = [True]
    game = []
    data = MainMenu(game,screen,debug,oldpalette)
Exemplo n.º 3
0
from os.path import exists, join

import pyglet.resource
import os.path
from cocos import director
from cocos.scene import Scene
from cocos.layer import MultiplexLayer
from Menus import MainMenu


script_dir = os.path.dirname(os.path.realpath(__file__))

pyglet.resource.path = [join(script_dir, '..')]
pyglet.resource.reindex()

director.director.init(width=800, height=650, caption="Pop The Same")

scene = Scene()
scene.add(MultiplexLayer(
    MainMenu()
    #,OptionsMenu(),
    #ScoresLayer(),
),
    z=1)

director.director.run(scene)
Exemplo n.º 4
0
def setup(test=False, phase_source=None, train_end_calls=[]):
    director.director.init(width=1056, height=700, caption='MatchBrain')
    scene = Scene()
    scene.add(MultiplexLayer(MainMenu(test, phase_source, train_end_calls), ),
              z=1)
    return scene