/// <summary>
        /// Displays the upcoming piece
        /// </summary>
        public void PreviewNextPiece(FuzaPiece nextPiece, decimal xPos, decimal yPos)
        {
            Console.CursorTop = (int)(yPos * Console.WindowHeight);

            string[] pieceView = nextPiece.ToString().Split(")");
            WriteText("Next Piece:", xPos, yPos);
            for (int i = 0; i < pieceView.Length - 1; i++)
            {
                Console.CursorLeft = (int)(xPos * Console.WindowWidth) - pieceView.Length;
                for (int j = 0; j < pieceView[i].Length; j++)
                {
                    SelectBlockColor(pieceView[i][j]);
                    Console.Write("  ");
                    Console.BackgroundColor = ConsoleColor.Black;
                }
                Console.WriteLine();
            }
        }
Exemple #2
0
 public void PreviewNextPiece(FuzaPiece nextPiece, decimal xPos, decimal yPos)
 {
     PreviewNextPieceCalled = true;
 }