I am using this tutorial to experiment with random (procedural) generation http://www.vlambeer.com/2013/04/02/random-level-generation-in-wasteland-kings/
I have got as far as you can see in the gif. the brown areas are ground, the grey are "wall".
my only issue is how to keep the player from moving past the edges of room they are currently in. I am attempting to add a wall object that will box the player in, but I do not know how to add the wall at the edge of the room.