Transverse spherocity is an event shape observable, which has got a unique capability to separate the events based on their geometrical shapes. In this work, we use transverse spherocity to study the identified light flavor production in heavy-ion collisions using A Multi-Phase Transport (AMPT) model. We obtain the elliptic flow coefficients for pions, kaons and protons in Pb-Pb collisions at $sqrt{s_{rm{NN}}} = 5.02$ TeV as a function of transverse spherocity and collision centrality. Also, we study the number of constituent-quark (NCQ) scaling of elliptic flow which interprets the dominance of the quark degrees of freedom at early stages of the collision. We observe a clear dependence of the elliptic flow for identified particles on transverse spherocity. It is found that the NCQ-scaling is strongly violated in events with low transverse spherocity compared to transverse spherocity-integrated events.