Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WindowWidth  = 80;
            Console.WindowHeight = 50;
            Console.SetBufferSize(Console.WindowWidth, Console.WindowHeight);
            Console.BackgroundColor = ConsoleColor.White;
            Console.CursorVisible   = false;
            Console.Clear();
            ConsoleGraphics graphics = new ConsoleGraphics();
            GameEngine      engine   = new GameEngine(graphics);

            engine.Start();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            // Screen resolution, font size, scale rate are affecting all these values.
            // This won't work as expected on other computers.
            Console.WindowWidth  = (Console.LargestWindowHeight * 2) + 55; // 87 characters on a row, that's ~= Height - for a game, and 50 - for text.
            Console.WindowHeight = Console.LargestWindowHeight;            // 41 rows is a max on Dell XPS 13"
            Console.SetBufferSize(Console.WindowWidth, Console.WindowHeight);
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.CursorVisible   = false;
            Console.Clear();

            ConsoleGraphics graphics = new ConsoleGraphics();

            Console.WriteLine("                                                             Game Started.");

            GameEngine engine = new GameEngine(graphics);

            engine.Start();
        }