code: function init(cols, rows, tilewidth, tileheight) {
           this.cols = cols;
           this.rows = rows;
           this.tilewidth = tilewidth;
           this.tileheight = tileheight;
         }
docs: constructor