Added wall width to map.

This commit is contained in:
Kristian Knarvik 2017-11-30 18:50:26 +01:00
parent 22a1b5a0d7
commit a16a07846b

View File

@ -1,7 +1,11 @@
public class Map {
private Tile[][] tiles;
private int wWidth;
private int wHeight;
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 fullWidth = width + (2 * wWidth);
Tile[][] map = new Tile[fullHeight][fullWidth];