示例#1
0
 public Food(int FieldHeight, int FieldWidth)
 {
     maxX = FieldWidth;
     maxY = FieldHeight;
     fieldSize = maxX * maxY;
     rand = new Random();
     pos = new Element();
 }
示例#2
0
 static void PrintFood(Element pos)
 {
     Console.SetCursorPosition(pos.X, pos.Y);
     Console.Write(Conf.FoodSymbol);
 }