Example #1
0
        private static void ProcessGameOver(object sender, EventArgs args)
        {
            gameScoreConsole              = new GameScoreConsole(castleConsole);
            gameScoreConsole.RestartGame += RestartGame;
            gameScoreConsole.QuitGame    += QuitGame;

            SadConsole.Global.CurrentScreen = gameScoreConsole;
            SadConsole.Global.FocusedConsoles.Set(gameScoreConsole);
        }
Example #2
0
        private void ProcessGameOver(object sender, EventArgs args)
        {
            SadConsole.Engine.ConsoleRenderStack[0].IsVisible = false;
            SadConsole.Engine.ConsoleRenderStack.Remove(castleConsole);

            gameScoreConsole              = new GameScoreConsole(castleConsole);
            gameScoreConsole.RestartGame += RestartGame;
            gameScoreConsole.QuitGame    += QuitGame;

            SadConsole.Engine.ConsoleRenderStack.Add(gameScoreConsole);
            SadConsole.Engine.ConsoleRenderStack[0].IsVisible = true;

            SadConsole.Engine.ActiveConsole = SadConsole.Engine.ConsoleRenderStack[0];
        }
Example #3
0
        private void ProcessGameOver(object sender, EventArgs args)
        {
            SadConsole.Engine.ConsoleRenderStack[0].IsVisible = false;
            SadConsole.Engine.ConsoleRenderStack.Remove(castleConsole);

            gameScoreConsole = new GameScoreConsole(castleConsole);
            gameScoreConsole.RestartGame += RestartGame;
            gameScoreConsole.QuitGame += QuitGame;

            SadConsole.Engine.ConsoleRenderStack.Add(gameScoreConsole);
            SadConsole.Engine.ConsoleRenderStack[0].IsVisible = true;

            SadConsole.Engine.ActiveConsole = SadConsole.Engine.ConsoleRenderStack[0];
        }