public void ImageDemo() { cHandler.Reset(); IntXYPair pikachuPosition = new IntXYPair(5, 5); bool exit = false; while (!exit) { Console.Clear(); cHandler.PrintImage("Pikachu", pikachuPosition); var input = Console.ReadKey(true); switch (input.Key) { case ConsoleKey.Escape: exit = true; break; case ConsoleKey.LeftArrow: pikachuPosition.x--; break; case ConsoleKey.UpArrow: pikachuPosition.y--; break; case ConsoleKey.RightArrow: pikachuPosition.x++; break; case ConsoleKey.DownArrow: pikachuPosition.y++; break; } } }