I have been there and done that! Right after my ex and I split, I had to move into my dad's basement for awhile to get back on my feet (I was a SAHM before). Unfortunately there was not enough room for my kids to have their own sleeping area as well as a play area so their cribs ended up a foot from my own bed. Bedtime became a game because they expected me to go to bed with them, they just didn't understand that I didn't have the same bedtime as them and they would cry and cry, which never happened when they had their own room (Probably because they never knew mommy stayed up once their door was closed!) So I used to have to lay down and pretend to sleep until they fell asleep every night which became a big pain! After a few months my youngest started to refuse to even get into his bed and want to sleep in mine. But luckily enough when we finally moved into our new house when I got remarried a year later, all the problems disappeared the first night we stayed there. I was not expecting that, I thought it had been too long for them to go back into their old routine and had become too attached to sleeping so close, but they went into their own beds and fell asleep with no problems!
I hope your situation works out much better than mine did. But on the positve side, staying there saved me tons of money since my dad refused to let me pay rent (I just had to provide our own food since he doesn't really eat at home anyways) and was able to move into a great house and lease a nice car faster than if I had struggled to get my finances in order after my split. Good Luck, and I am always available to vent to if you need!