title: Falling "$" in console game
body: <p>another silly question from me :D
  I want to make a console game where dollars are falling from above and we as the player have to catch them. I wrote a program that reads the buttons from the keyboard and allows us to move our I don't know, say character? To the right or to the left. Well, and all in all, I don't know how to create a method that will make the &quot;$&quot; fall from the top, meanwhile not interfering with the system of moving the &quot;character&quot; (I tried using SetCursorPosition but it didn't work well). I also thought whether to make the playing field as an array (I saw it somewhere on youtube, where a guy wrote Snake) but I don't know how to do it for the hell of it. This is how it looks now:</p>
  <pre><code>    class Program
  {
      public static int x = 0, y = 0;
      static void Main(string[] args)
      {
          const string user = &quot;@@@&quot;;
  
          Console.WriteLine(&quot;Press any key to start.&quot;);
          Console.ReadKey();
          Console.Clear();
  
          while (true)
          {
              if (Console.KeyAvailable)
              {
                  var command = Console.ReadKey().Key;
  
                  switch (command)
                  {
                      case ConsoleKey.LeftArrow:
                          if (x &gt; 0)
                          {
                              x--;
                          }
                          break;
                      case ConsoleKey.RightArrow:
                          x++;
                          break;
                  }
                  Write(user, x, y);
              }
          }
      }
      public static void Write(string user, int x = 0, int y = 0)
      {
          if (x &gt;= 0)
          {
              Console.Clear();
              Console.SetCursorPosition(x, 20);
              Console.Write(user);
          }
      }
  </code></pre>