You quit your job for perfectly good reasons, it was a crappy job and if I was in your situation I'd have done the same. Be proud you walked away.
You're going to be fine if you keep your shit together, use your friends taking the piss as your justification to succeed. Go find a crappy job that'll earn you a piss poor amount of money and then go focus on being awesome in your spare time. Make something random, see what happens. Repeat. Find other devs/designers to work with, see what you can do. Repeat. Work in the day and do crazy shit at night. Get your confidence back, build your portfolio. Get to a point where you've got your cahones back and then do something with yourself. Move to somewhere where there's cool companies looking to hire, impress them all. Repeat.
You'll get somewhere if you push for it. And if you fuck up? Who cares! You're young, just enjoy the ride.