v0.6.0: added a 1 tile border around every room in standard painter
This commit is contained in:
parent
73c10be912
commit
75f9cd454b
|
@ -72,6 +72,9 @@ public class RegularPainter extends Painter {
|
||||||
if (r.top < topMost) topMost = r.top;
|
if (r.top < topMost) topMost = r.top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
leftMost--;
|
||||||
|
topMost--;
|
||||||
|
|
||||||
int width = 0, height = 0;
|
int width = 0, height = 0;
|
||||||
|
|
||||||
for (Room r : rooms){
|
for (Room r : rooms){
|
||||||
|
@ -80,6 +83,9 @@ public class RegularPainter extends Painter {
|
||||||
if (r.bottom > height) height = r.bottom;
|
if (r.bottom > height) height = r.bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
width++;
|
||||||
|
height++;
|
||||||
|
|
||||||
level.setSize(width+1, height+1);
|
level.setSize(width+1, height+1);
|
||||||
|
|
||||||
for (Room r : rooms) {
|
for (Room r : rooms) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user