Original: The gametophyte cell closest to the micropyle opening of the embryo sac develops into the egg cell.
Simplified: The  cell closest to the opening of the embryo sac becomes the egg cell.