code: function(){
              this.fillBg();
              for (var x = this.width - 1; x >= 0; x--) {
                  for (var y = this.height - 1; y >= 0; y--) {
                      // get the actual map tile coord from view coord using offset
                      var tileX = x + this.originX,
                          tileY = y + this.originY;
                      this.drawTile(tileX, tileY);
                  }
              }
  
              this.drawBufferToCanvas();
          }
docs: Draws map and entity tiles. All parameters will fall back to this.game.<param> if not provided.
  @method draw