Exemple #1
0
        private static void Main()
        {
            RenderEngine.RenderMap();
            Hero superMario = new Hero();
            //test na rendvaneto na kostenurka
            Turtle turtle = new Turtle(500, 100, 42);


            //RenderEngine.RenderHero(superMario);

            while (true)
            {
                turtle.Moving();
                superMario.MovingHero(superMario);
            }
        }
Exemple #2
0
        private static void Main()
        {
            RenderEngine.RenderMap();
            Hero superMario = new Hero();

            RenderEngine.RenderHero(superMario);

            while (true)
            {
                ConsoleKeyInfo inputKey = Console.ReadKey();
                if (inputKey.Key == ConsoleKey.RightArrow)
                {
                    RenderEngine.RenderHero(superMario, "Right");
                }
                else if (inputKey.Key == ConsoleKey.LeftArrow)
                {
                    RenderEngine.RenderHero(superMario, "Left");
                }
            }
        }