public/js-roguelike-skeleton/src/multi-object-manager.js
function(width, height){
            this.map.setSize(width, height);
            var map = this.map;
            this.map.each(function(val, x, y){
                if(val === void 0){
                    map.set(x, y, []);
                }
            });
        }
function(width, height){
            this.map.setSize(width, height);
            var map = this.map;
            this.map.each(function(val, x, y){
                if(val === void 0){
                    map.set(x, y, []);
                }
            });
        }
function ( width , height ) { this . map . setSize ( width , height ) ; var map = this . map ; this . map . each ( function ( val , x , y ) { if ( val === void 0 ) { map . set ( x , y , [ ] ) ; } } ) ; }
Sets the size of the map to manage objects within.
@method setSize
@param {Number} width - Width of current map in tiles.
@param {Number} height - Height of current map in tiles.
Sets the size of the map to manage objects within .