I don't know if what i did was right.?

i hadn't seen my boyfriend in a really long time, and we finally got together last night. when we did he was so extremely quiet. i tried starting up a conversation with him, but he gave me very short responses and i got kinda pissed off (im four years older than him btw). so, one of my friends came over and personally, i was in a bad mood but i tried to be okay with her barging in on us, yes... i was at a party with him. and he talked to her non-stop, i mean it! he even complimented her, i got all crazy dressed up for him him and he didn't give a crap! that wasn't like him to do... at all. so he talked very comfortably to everyone BUT ME! so after about a half hour, i just left. i didn't say a thing, i was honestly like really upset and i went home. he hasn't spoken to me since then. no i didn't bother calling him cuz i'm kinda mad. what's up with him?!