Is he leading me on?

I've been interacting with this guy for a few months now and it's been an emotional rollercoaster. We're both in our early 20s. We were doing a big project together at university. At first he would flirt with me, look at me, make me laugh, he was the one to initiate touch, he'd sit close and ask me questions. He remembered some things that I said before and brought them up in conversations. Once he suggested to study together outside of uni but never followed up on it. After that he'd act like I didn't exist. It honestly looked like he disliked me. When I reciprocated his flirting he seemed excited and would get even more touchy but when I texted first sometimes he would take a day to text back (irl he uses the phone a lot) or when we met he'd be mean and jokingly insult me. He would text me first (both in the morning and past midnight) but it seemed like he didn't really want to engage in a longer conversation. His texts were kinda short and superficial, some contained hug/touch emojis. There was a time when he flirted with my friend in front of me too. He rarely approached me throughout these few months. Recently I got fed up with it and decided to be less talkative around him, that's when he talked to me first but he only asked how I was doing. We don't text anymore though. I can't figure out if he only wants one thing, he's shy or he's been breadcrumbing me from the beginning. I feel played and I don't know whether I should talk to him more or move on. I don't want to make a fool of myself by talking to someone who's semi-interested. I was flirty too, didn't he understand my signals? I'm pretty sure that I've been just an option or maybe he has a girlfriend already. Could anyone give me some advice? I'm so tired of this.
Is he leading me on?
Post Opinion