예제 #1
0
        static void Main(string[] args)
        {
            Console.CursorVisible = false;
            Console.BufferHeight  = Console.WindowHeight;
            var engine = new GameEngine();

            engine.Start();
        }
        public static void Main()
        {
            Console.CursorVisible = false;
            //Console.BufferHeight = Console.WindowHeight;
            var snake = new GameEngine();

            snake.Start();
        }
예제 #3
0
        static void Main(string[] args)
        {
            IReader reader = new ConsoleReader();
            IWriter writer = new ConsoleWriter();
            IEngine engine = new GameEngine(reader, writer);

            engine.Start();
        }
예제 #4
0
        static void Main()
        {
            GameEngine game = new GameEngine();

            game.Start();
            while (true)
            {
                ;
            }
        }
예제 #5
0
        static void Main(string[] args)
        {
            Console.WindowWidth  = 74;
            Console.WindowHeight = 30;
            Console.SetBufferSize(Console.WindowWidth, Console.WindowHeight);
            Console.BackgroundColor = ConsoleColor.White;
            Console.CursorVisible   = false;
            Console.Clear();

            ConsoleGraphics graphics = new ConsoleGraphics();

            GameEngine engine = new GameEngine(graphics);

            ResourcesManager.ImageResources.LoadImages(graphics);
            MenuScene scene = new MenuScene(graphics.ClientWidth, graphics.ClientHeight);

            scene.AddMenuItems(MenuScene.GetMainMenuItems());
            engine.ChangeScene(scene);

            engine.Start();
        }
        static void Main(string[] args)
        {
            var engine = new GameEngine();

            engine.Start();
        }
예제 #7
0
파일: Program.cs 프로젝트: kridy/Snaky
        static void Main(string[] args)
        {
            var disp = new ConsoleDisplay(100, 50);
            var game= new SnakeGame();
            var engine = new GameEngine(game, disp);

            engine.Initialize();
            engine.Start();
        }