I wasn’t saying anything because I was so scared of pissing him off.
But I would respond with “yes” or “Sorry” or “ok” when he asked me to stop doing things like moving around and such.
Sounds really strange to me. I know he’s your friend so you must enjoy being around him. What you describe doesn’t sound fun to me. He seems kind of mean
he sounds schiz 
He’s usually very sweet, but when he’s in a bad mood, he tends to forget that things annoy him because he’s in a bad mood, not because the other person is actually annoying.
I honestly think you’re in a bad relationship. But if you refuse to end it, you should call him today, let him know that wasn’t cool and that he owes you an apology. Making you leave like that was downright mean and his treatment of you is abusive. It’s not ok. You deserve to be treated with kindness and respect. This friend isn’t doing that. You have to speak up for yourself or he’ll just think it’s ok, and it’s not ok.
Does your friend have mental health issues? The irritability and noise-sensitivity is sometimes an indicator of depression and/or anxiety.
I’m not in any way excusing his behavior, but your approach to discussing the situation with him might be a little different if he has mental health issues vs if he’s just being a mean jerk.
He does. He’s got both depression and anxiety, along with OCD and a few other things.
Yeah, I was kinda guessing that from your description. I have all three (MDD, GAD, and mild OCD) myself and I find that I can get easily irritated by things that shouldn’t irritate me. My solution (which I don’t necessarily recommend) is to isolate myself when I’m symptomatic.
I think that’s part of why I’m so hurt. He could at any time during the night either chosen to go to bed (because I could tell he was really tired), or go to his bedroom and watch some TV on his phone.
The way I was raised, though it’s not a perfect way to deal with things, is that if you’re angry and you’re taking it out on other people, you have to remove yourself from the situation, not them. And apologise afterwards or at least explain or talk about what happened.
I get that he and I come from very different upbrinings, but I still feel like he could have done more to not leave me with the feeling of not being good enough.
I’ll also mention that if I do lash out at someone because I’m irritable, I do apologize. The thing is, though, that an apology only goes so far, because, in the end, I still acted inappropriately and hurt another person’s feelings.
Still, an apology shows that you’re aware of the hurt you caused.
My feelings were hurt, and they will be for a while, but if he apologised, I’d at least know he felt bad about causing them, and that would help tremendously.
I would talk to him about how you’re feeling. This would give him the opportunity to maybe open up a little about what was going on with him and to apologize. I would also point out to him that your having to walk in the dark and rain for an hour to get back home is not OK under any circumstances.
Thanks, I’ll try that 
I just tried to message him asking how his mood is today and if he´s had any sleep. I just hope he doesn’t ignore the message.
If I haven’t heard from him in a couple of hours, I’ll send him a message about the apology, I think. I know he hates it when I do those things via text rather than verbally, but I don’t feel like I have much choice.
I’m too much of a chicken to call him on the phone.
This friendship seems very unbalanced to me. You should be there for your friends, but you should also expect them to be there for you. Making you walk home in the dark and rain is not something friends do to each other, no matter how bad they’re feeling. You’re 100% right that the behavior was unacceptable. You’re 100% right that you deserve an apology. If it was me, I would wait a day to see if he apologized on his own, because apologies mean more when they’re unsolicited. But if he doesn’t, it might be time to think about whether this friend actually respects you as a person.
Mental illness is not an excuse to treat people badly. You are living proof of that. He had many options that didn’t involve kicking you out into the cold rain at 5 AM.
You say he has connections to get free food. Why can’t he use them to get food for himself? Why does he need your money? Something seems like it’s not adding up to me. You help this guy eat with money you can’t spare, yet he can’t even let you stay over one night? That sounds like he just doesn’t care about you at all.
I’d do a combo of 1 and 3. Contact him find out how he is and gauge his mood, then explain how what happened made you feel and then ask for an apology.
@Ninjastar said it all @Berru.
Something is not adding up.
Quite honestly? I would tell him he is the WORST friend in the entire universe and that he’s dead to me. Then I would never ever ever ever talk to him again because he’s obviously a ■■■■ person and a bad friend.
Since I’m guessing you aren’t gunna do that if I were you I would be very firm and clear. Tell him what he did was super awful and nobody should put up with that kind of pissbaby bitchass attitude. Tell him if he values your friendship he will apologize and make it up to you.
Nobody deserves to get treated like trash from their friends. That’s the beauty of living in a world with 7 billion other people… you can just find new ones.
I sent him a message two hours ago, asking how he is, and he still hasn’t responded. The thing says he was last online a little more than an hour ago, but my message remains unread.
I don’t know if this means he’s gone to bed, or that he’s just in too much of a pisspoor mood to bother with me atm.
I really want to send him a message asking him if we can talk when he has the time, but I’m afraid I’ll make him mad if he’s still in a bad mood 
Your posts are giving me that cringy feeling and I don’t know what advise to give
My biggest fear is that your getting taken advantage of and manipulated and mentally abused
What kind of cringy feeling?
I know he’s probably manipulating me a little bit, but most of the time, he’s a really nice and fun guy. He’s just a little high-maintenance.
I know I might seem like one of those abuse victims who keeps running back to the abusive one and thoughtlessly defending them, but he really is not a bad person. He has his struggles, just like I have mine, and our friendship has survived far worse things.