Start mipmapping infrastructure

This commit is contained in:
Matthias Schiffer 2015-02-03 12:41:47 +01:00
parent b3c1a9be2f
commit e1b3347da5
4 changed files with 110 additions and 10 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/r.'+coords.x+'.'+coords.y+'.png';
tile.src = 'data/0/r.'+coords.x+'.'+coords.y+'.png';
return tile;
},