Generate light layer

This commit is contained in:
Matthias Schiffer 2015-02-03 13:13:12 +01:00
parent e1b3347da5
commit 9e0bbcf685
5 changed files with 52 additions and 30 deletions

View file

@ -21,7 +21,7 @@ var MinedMapLayer = L.GridLayer.extend({
if (coords.x >= this._info.minX && coords.x <= this._info.maxX &&
coords.y >= this._info.minZ && coords.y <= this._info.maxZ &&
this._regions[coords.y-this._info.minZ][coords.x-this._info.minX])
tile.src = 'data/0/r.'+coords.x+'.'+coords.y+'.png';
tile.src = 'data/map/0/r.'+coords.x+'.'+coords.y+'.png';
return tile;
},