I'm not very experienced with creating 2d games, but I would assume you'd do a form of collision detection either way. For something like the bed, you could do a sprite, or if you wanted to save some space and effort, make a collision box instead. Same goes for the perimeter of the room. I would personally go with a method of setting it up so that your game would check the character's x and y coordinates and if they were either more or less than the x and y boundaries you set, you would make it stop you. Not sure if I helped at all, but hey, I tried
<EDIT>
I painted up your picture to give you a better idea of what I mean.
Green is the actual space of the map that you could walk in if there were no sprites to collide with.
Red is the sprites that you could collide with.
Blue is your x and y axis.
Enjoy my artistic skills, they don't shine very often haha
Making my way through life one line of code at a time...