Exemple #1
0
        void GameOver()
        {
            SKTransition reveal        = SKTransition.FlipHorizontalWithDuration(0.5);
            var          gameOverScene = new GameOverScene(Size, (int)score);

            View.PresentScene(gameOverScene, reveal);
        }
Exemple #2
0
        protected override void Initialize()
        {
            base.Initialize();
            // -- Creating new objects
            menuScene     = new MenuScene(this);
            gameScene     = new GameScene(this);
            gameOverScene = new GameOverScene(this);

            // -- Settings
            IsMouseVisible           = true;
            Window.AllowUserResizing = true;
            // --
            MenuState.IsShowMainMenuScene = true;
        }