예제 #1
0
        public void Start()
        {
            while (isRunning)
            {
                ObsoleteRenderer renderer = new ObsoleteRenderer();
                renderer.ScreenInit(64, 64);

                string[] temp = { " /\\ /\\ ",
                                  "(O _ O)" };

                renderer.Clear();

                renderer.DrawSquare(0, 0, 64, 16, '~', ConsoleColor.Blue);
                renderer.DrawSprite(4, 4, temp, ConsoleColor.DarkMagenta);
                renderer.DrawSprite(1, 16, temp, ConsoleColor.Red);
                renderer.DrawSprite(7, 43, temp, ConsoleColor.Green);
                renderer.DrawSprite(30, 16, temp, ConsoleColor.DarkCyan);
                renderer.DrawSprite(2, 50, temp, ConsoleColor.Cyan);
                renderer.DrawSprite(20, 40, temp, ConsoleColor.Red);
                renderer.DrawSprite(50, 10, temp, ConsoleColor.Green);
                renderer.DrawString(10, 1, "HELLO WORLD", ObsoleteRenderer.textAlingment.middle);

                renderer.Render();

                Player player = new Player();

                Input(player);
            }
        }
예제 #2
0
        public void Start()
        {
            while (isRunning)
            {
                ObsoleteRenderer renderer = new ObsoleteRenderer();
                renderer.ScreenInit(64, 64);

                string[] temp = { " /\\ /\\ ",
                                  "(O _ O)" };

                renderer.Clear();

                renderer.DrawSquare(0, 0, 64, 16, '~', ConsoleColor.Blue);
                renderer.DrawSprite(4, 4, temp, ConsoleColor.DarkMagenta);
                renderer.DrawSprite(1, 16, temp, ConsoleColor.Red);
                renderer.DrawSprite(7, 43, temp, ConsoleColor.Green);
                renderer.DrawSprite(30, 16, temp, ConsoleColor.DarkCyan);
                renderer.DrawSprite(2, 50, temp, ConsoleColor.Cyan);
                renderer.DrawSprite(20, 40, temp, ConsoleColor.Red);
                renderer.DrawSprite(50, 10, temp, ConsoleColor.Green);
                renderer.DrawString(10, 1, "HELLO WORLD", ObsoleteRenderer.textAlingment.middle);

                renderer.Render();

                Player player = new Player();

                Input(player);
            }
        }