Biological father.

Please help with words of wisdom because i am at my breaking point. For financial and well being i am not with the biological father of my child. We used to fight like crazy and I've learned to just let all that pain go. Now my issue with him is he struggles to make rent (he pays half), he smokes weed all day (don't want my newborn around it), and anytime i see him he is on his PlayStation. These are the reason I choose to leave him and find stability in my life with a good friend I have known for years which I will be marrying. This being said I am as happy as I can be given I'm due soon and the bio situation. However we used to be friends and i find myself missing that. I tried so hard to make our friendship work out not just for the babies sake but he acts like im a monster and ignores me. (He's my freaking room mate!) I do everything out of kindness but i am the devil and he believes I try so hard not cause i genuinely want his attention or to talk but because "it'll shut me up" and that statement really did hurt me and i don't know how to feel i feel so numb and hurt genuinely thinking about this person but im seen as a snake in the grass. It feels terrible my mind can't even fathom the kind of person it takes to be sinister and have an agenda with someone. I really just wanted a friend because i have none and or at least good terms with the baby's father. Idk what to do I'm still nice but I've cut him out of my heart completely and the memories are just pain that leaves me angry. Am i wrong for just wanting to walk away from this all together. Or should i still try to make something work??