Esempio n. 1
0
        void StartTutorial(object stuff = null)
        {
            var layer      = GameTutorialLayer.CreateScene(Window);
            var transition = new CCTransitionMoveInR(0.3f, layer);

            Director.ReplaceScene(transition);
        }
Esempio n. 2
0
        void StartGame(object stuff = null)
        {
            var mainGame = Settings.FirstTime ? GameTutorialLayer.CreateScene(Window, true) : GameMainLayer.CreateScene(Window);

            Settings.FirstTime = false;
            var transitionToGameOver = new CCTransitionMoveInR(0.3f, mainGame);

            Director.ReplaceScene(transitionToGameOver);
        }
Esempio n. 3
0
        public static CCScene CreateScene(CCWindow mainWindow, bool startGameAfter = false)
        {
            var scene = new CCScene(mainWindow);
            var layer = new GameTutorialLayer(startGameAfter);

            scene.AddChild(layer);

            return(scene);
        }