Sorry it went poorly for you.
Chances are your friend just really didn't know what to say - he is a guy after all and he's been used to doing guy stuff with you and he can only picture you as a guy so it may be to much for his brain to compute that you are in fact female. This is one of the reasons I decided to not bother telling anyone until I was very close to going full time - regardless of adverse comments they're less likely to deter you.
As I've mentioned this has been my second tilt at transition. Several years ago after a fat mouthed mutual acquaintance outed my trans history to a close friend/colleague/drinking buddy of mine I decided to tell him a bit more about it, etc. He was quite "sympathetic" and accepting but he also said - "good thing you didn't, no offence but you would've been one weird looking chick"...!!! Yeah, it was a bit insulting but we were being candid and were both a bit drunk - but the thing is that when outing ourselves pre-transition people can still only see the guy not the gal. They can't even begin to comprehend the gal especially if they are hung up on "looks".
When I started transition this time I kept my mouth shut but when I got close to wanting to go out in girl mode with friends I started telling them, when I did so I'd show them pics of me as Grace to help them connect a few dots. I think it really helped change their perception. Since I was still good friends with that guy I mentioned above, when I decided to retransition I made it a personal mission to "prove him wrong" and I did, and I know that because when I came out to him again and showed him the pics I reminded him of his earlier comments and he sheepishly admitted he was wrong... then he did so again when he got to meet me for the first time.
It's painful to get those kind of responses you got with your friend but if you're sitting there telling them you're female but you're presenting as male some people's brains just cannot make the leap and so stupid comments ensue. See if "visual prompts" can help!