Added wall width to map.
This commit is contained in:
parent
22a1b5a0d7
commit
a16a07846b
@ -1,7 +1,11 @@
|
|||||||
public class Map {
|
public class Map {
|
||||||
private Tile[][] tiles;
|
private Tile[][] tiles;
|
||||||
|
private int wWidth;
|
||||||
|
private int wHeight;
|
||||||
|
|
||||||
public Map(int width, int height, int wWidth, int wHeight, Tile empty, Tile wall) {
|
public Map(int width, int height, int wWidth, int wHeight, Tile empty, Tile wall) {
|
||||||
|
this.wWidth = wWidth;
|
||||||
|
this.wHeight = wHeight;
|
||||||
int fullHeight = height + (2 * wHeight);
|
int fullHeight = height + (2 * wHeight);
|
||||||
int fullWidth = width + (2 * wWidth);
|
int fullWidth = width + (2 * wWidth);
|
||||||
Tile[][] map = new Tile[fullHeight][fullWidth];
|
Tile[][] map = new Tile[fullHeight][fullWidth];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user