Пример #1
0
        static void Main(string[] args)
        {
            var consoleWriter = new ConsoleWriter(80, 40, 10, 0, 0);

            var world = CreateWorld(consoleWriter);

            world.EventHandler += World_EventHandler;

            world.Init();

            while (IsGameRunning)
            {
                world.Update();
                consoleWriter.BeginRender();
                world.Render();
                consoleWriter.EndRender();
                Thread.Sleep(100);
            }

            Console.ReadKey(true);
        }