v0.6.0: added a 1 tile border around every room in standard painter

This commit is contained in:
Evan Debenham 2017-04-13 15:46:46 -04:00
parent 73c10be912
commit 75f9cd454b

View File

@ -72,6 +72,9 @@ public class RegularPainter extends Painter {
if (r.top < topMost) topMost = r.top;
}
leftMost--;
topMost--;
int width = 0, height = 0;
for (Room r : rooms){
@ -80,6 +83,9 @@ public class RegularPainter extends Painter {
if (r.bottom > height) height = r.bottom;
}
width++;
height++;
level.setSize(width+1, height+1);
for (Room r : rooms) {