public Snake(Point topLeftPoint) { mSnake = new SnakePart[10]; this.Direction = 'D'; Point initialPosition = new Point(); initialPosition.X = topLeftPoint.X + 3; initialPosition.Y = topLeftPoint.Y + 1; this.Lenght = 3; mSnake[0] = new SnakePart(); mSnake[0].Position = initialPosition; for (int i = 1; i < this.Lenght; ++i) { mSnake[i] = new SnakePart(); mSnake[i].Position.X = initialPosition.X - i; mSnake[i].Position.Y = initialPosition.Y; } }