var rooms = [ { name: 'Room 1', position: {x: 0, y: 0}, size: {x: 2, y: 1} }, { name: 'Room 2', position: {x: 2, y: 0}, size: {x: 2, y: 1} }, { name: 'Room 3', position: {x: 0, y: 1}, size: {x: 1, y: 2} }, { name: 'Room 4', position: {x: 3, y: 1}, size: {x: 1, y: 2} } ] +-------------------+-------------------+ | | | | | | | Room 1 | Room 2 | +---------+---------+---------+---------+ | | | | | | | | | | | | | | | | | | | | | Room 3 | | Room 4 | +---------+ +---------+