Esempio n. 1
0
        void StartNewGame(object stuff = null)
        {
            var level            = LevelIntroLayer.CreateScene(Window, levels, activePlayer);
            var transitionToGame = new CCTransitionFade(3.0f, level);

            Director.ReplaceScene(transitionToGame);
        }
Esempio n. 2
0
        public static CCScene CreateScene(CCWindow mainWindow, List <Level> gameLevels, Player player)
        {
            var scene = new CCScene(mainWindow);
            var layer = new LevelIntroLayer(gameLevels, player);

            scene.AddChild(layer);

            return(scene);
        }