Exemple #1
0
        public static void StartGame(ConsoleGraphics graphics)
        {
            Console.Clear();
            GameEngine engine = new SampleGameEngine(graphics);

            engine.Start();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.WindowWidth  = 80;
            Console.WindowHeight = 40;
            Console.SetBufferSize(Console.WindowWidth, Console.WindowHeight);
            Console.BackgroundColor = ConsoleColor.Black;
            Console.CursorVisible   = false;
            Console.Clear();
            ConsoleGraphics graphics = new ConsoleGraphics();
            GameEngine      engine   = new SampleGameEngine(graphics);

            engine.NewSnake();
            engine.Start();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Console.WindowWidth  = 40; //width in columns
            Console.WindowHeight = 40; //height in rows
            Console.SetBufferSize(Console.WindowWidth, Console.WindowHeight);
            Console.BackgroundColor = ConsoleColor.White;
            Console.CursorVisible   = false;
            Console.Clear();

            ConsoleGraphics graphics = new ConsoleGraphics();

            GameEngine engine = new SampleGameEngine(graphics);

            engine.Start();
        }