Exemple #1
0
 public Trail(Point <int> StartPosition, int length)
 {
     for (int i = 0; i < length; i++)
     {
         var matrixSymbol = new MatrixSymbol
         {
             Symbol   = MatrixSymbols.GetRandomChar(),
             Position = new Point <int>(StartPosition.X, StartPosition.Y - i),
             Color    = (i == 0) ? leadColor : ((i == length - 1) ? endColor : normalColor)
         };
         _matrixSymbols.Add(matrixSymbol);
     }
 }
Exemple #2
0
 public void Update()
 {
     Position.Y += 1;
     Symbol      = MatrixSymbols.GetRandomChar();
 }