Example #1
0
        //---------------------------------------------------------------------------------------------------------
        // FreePlay
        //---------------------------------------------------------------------------------------------------------
        // Transitions to the Free Play layer
        //---------------------------------------------------------------------------------------------------------
        void FreePlay(object stuff = null)
        {
            var layer             = FreePlayLayer.CreateScene(Window, currentPlayer);
            var transitionToLayer = new CCTransitionSlideInR(0.2f, layer);

            Director.ReplaceScene(transitionToLayer);
        }
Example #2
0
        //---------------------------------------------------------------------------------------------------------
        // CreateScene
        //---------------------------------------------------------------------------------------------------------
        public static CCScene CreateScene(CCWindow mainWindow, Player activePlayer)
        {
            var scene = new CCScene(mainWindow);
            var layer = new FreePlayLayer(activePlayer);

            scene.AddChild(layer);

            return(scene);
        }