lychees's picture
Upload 569 files
87b3b3a
raw
history blame contribute delete
492 Bytes
/**
* @class Base map generator
* @param {int} [width=ROT.DEFAULT_WIDTH]
* @param {int} [height=ROT.DEFAULT_HEIGHT]
*/
ROT.Map = function(width, height) {
this._width = width || ROT.DEFAULT_WIDTH;
this._height = height || ROT.DEFAULT_HEIGHT;
};
ROT.Map.prototype.create = function(callback) {}
ROT.Map.prototype._fillMap = function(value) {
var map = [];
for (var i=0;i<this._width;i++) {
map.push([]);
for (var j=0;j<this._height;j++) { map[i].push(value); }
}
return map;
}