public static GameScene GameStartLayerScene(CCWindow mainWindow)
        {
            var scene = new GameScene(mainWindow);
            var layer = new GameStartLayer();

            scene.AddChild(layer);
            return(scene);
        }
Ejemplo n.º 2
0
        public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow)
        {
            application.PreferMultiSampling  = false;
            application.ContentRootDirectory = "Content";

            CCSize winSize = mainWindow.WindowSizeInPixels;

            mainWindow.SetDesignResolutionSize(winSize.Width, winSize.Height, CCSceneResolutionPolicy.ExactFit);

            InitializeCards();

            //Game Initializer
            GameScene scene = GameStartLayer.GameStartLayerScene(mainWindow);

            mainWindow.RunWithScene(scene);
        }