To GlassyWater: Guys play major head games and act like jerks to girls they like so if you get back unfavorable behavior, blame your own gender, lol
...anyway. I'm not sure you need to act "cold" necessarily, just be confident and frank about what you won't put up with. If he wonders why you're hard to pin down, remind him he was rude to you before and don't accept that kind of treatment from any guy. He will respect you if you stand your ground. You don't have to say it mean, just assertively.
Chances are (I'm older with experience in this) he is rude and acts like a jack a$$ toward you because he likes you. That's what they do, guys are so juvenile and dumb like that. If only they knew girls didn't like that crap. The reason they do it I assume is in case they're rejected, they can keep acting like a jack a$$ and say "yeah well, I didn't want that chick anyway." Know what I mean?