for (int i = 0; i < heightInTiles; i++) { for (int j = 0; j < widthInTiles; j++) { setTileAt(j, i, other.getTileAt(j+xOffset,i+yOffset));
for (int y = bounds.y; y < bounds.y + bounds.height; y++) { for (int x = bounds.x; x < bounds.x + bounds.width; x++) { setTileAt(x, y, other.getTileAt(x, y));
    public void copyFrom(MapLayer other) {        for (int i = 0; i < heightInTiles; i++) {            for (int j = 0; j < widthInTiles; j++) {				                setTileAt(j, i, other.getTileAt(j+xOffset,i+yOffset));				            }        }    }