示例#1
0
文件: snake.cs 项目: Ihor01/snake
 public bool Eat(point food)
 {
     point head = NextPoint();
     if (head.IsHit(food))
     {
         pList.Add(food);
         food.ChangeChar(3);    
         score++;
         return true;
     }
     else
         return false;
 }