Exemple #1
0
        const int battleTime        = 120; // in seconds.

        static void Main()
        {
            ScreenManager.SetScreenResolution(battleFieldHeight, battleFieldWidth);
            ScreenManager.SplashScreen();

            while (true)
            {
                ScreenManager.NewGameStartScreen();

                ConsoleRenderer renderer = new ConsoleRenderer(battleFieldHeight, battleFieldWidth);

                Engine gameEngine = new Engine(renderer, battleTime);
                gameEngine.OnGameOver += ScreenManager.GameOver;

                Initialize(gameEngine);

                gameEngine.Run();
            }
        }
Exemple #2
0
        static void Main()
        {
            ScreenManager.SetScreenResolution(battleFieldHeight, battleFieldWidth);
            ScreenManager.SplashScreen();

            while(true)
            {
                ScreenManager.NewGameStartScreen();

                ConsoleRenderer renderer = new ConsoleRenderer(battleFieldHeight, battleFieldWidth);

                Engine gameEngine = new Engine(renderer, battleTime);
                gameEngine.OnGameOver += ScreenManager.GameOver;

                Initialize(gameEngine);

                gameEngine.Run();

            }
        }