|
|
@@ -67,14 +67,14 @@ module.exports = { |
|
|
|
this.offsetRooms(startRoom); |
|
|
|
buildMap(this, instance, startRoom); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
//To spawn in another room |
|
|
|
/*const spawnRoom = this.rooms.find(t => t.template.properties.end); |
|
|
|
map.spawn = [{ |
|
|
|
x: spawnRoom.x + ~~(spawnRoom.template.width / 2) - 2, |
|
|
|
y: spawnRoom.y + ~~(spawnRoom.template.height / 2) + 6 |
|
|
|
}];*/ |
|
|
|
|
|
|
|
return true; |
|
|
|
}, |
|
|
|
|
|
|
|
loadMapProperties: function ({ leafConstraints, endConstraints }) { |
|
|
|