コード例 #1
0
        public static void Render(this Game game, ITimer timer)
        {
            Console.Clear();
            Console.WriteLine(@"                                                         _      _                                     ");
            Console.WriteLine(@" _______   _______     _______.___________..______       U______U  ____    ____  _______ .______      ");
            Console.WriteLine(@"|       \ |   ____|   /       |           ||   _  \      /  __  \  \   \  /   / |   ____||   _  \     ");
            Console.WriteLine(@"|  .--.  ||  |__     |   (----`---|  |----`|  |_)  |    |  |  |  |  \   \/   /  |  |__   |  |_)  |    ");
            Console.WriteLine(@"|  |  |  ||   __|     \   \       |  |     |      /     |  |  |  |   \_    _/   |   __|  |      /     ");
            Console.WriteLine(@"|  '--'  ||  |____.----)   |      |  |     |  |\  \----.|  `--'  |     |  |     |  |____ |  |\  \----.");
            Console.WriteLine(@"|_______/ |_______|_______/       |__|     | _| `._____| \______/      |__|     |_______|| _| `._____|");

            Console.WriteLine();
            Console.WriteLine("Level: {0}, Run {1}", game.Board.Level, timer.Ticks());
            Console.WriteLine("======================================");

            foreach (var item in game.Board.AllItems)
            {
                item.Render();
            }

            game.RenderScene();
        }