Don't be a Devdas
If the girl ignores you then you do not have to become Devdas. Do not let it look like you are very depressed. By doing this, that girl will start to think of you as weak. Keep your mind as much as possible. By doing this you can regain his attention and company.
Ignore You
Till now you used to walk back and forth and that is why she is ignoring you with so much confidence. Maybe he has love for you too. So now you have to ignore him a little as if you are around him but ignore him.
Do not feel sad
If the girl ignores, then first trust yourself, be proud of yourself and do not leave your arrogance. Never apologize to the girl by writing messages, love letters etc.
By doing this, she will lighten you. Never give up your self-esteem, if you ever come to the point that you have to talk to him, then make the matter short and to the point, and once you get the chance, you can say everything in front of him.
https://www.youtube.com/watch?v=VNzbnydIhjk
Forget Everything
If you don't have any fault, you don't have to be sweet. But do not let it go away from you. Meet and talk to him but don't let him feel that your life has stopped without him.
Let her feel like you are happy, maybe she will realize her mistake and your life will be beautiful again.
Do not draw too close
If you talk to him a little bit, then you do not have to be very close. You just have to talk a little bit and if you can, you will have to leave it incomplete. Whenever she talks about the topic of her choice and leaves it in the middle, it will make her feel like talking to you and she will miss you.