src/level/tiled/TMXLayer.js
function (x, y) {
            // clearing tile
            this.layerData[x][y] = null;
            // erase the corresponding area in the canvas
            if (this.preRender) {
                this.canvasRenderer.clearRect(x * this.tilewidth, y * this.tileheight, this.tilewidth, this.tileheight);
            }
        }
function (x, y) {
            // clearing tile
            this.layerData[x][y] = null;
            // erase the corresponding area in the canvas
            if (this.preRender) {
                this.canvasRenderer.clearRect(x * this.tilewidth, y * this.tileheight, this.tilewidth, this.tileheight);
            }
        }
function ( x , y ) { // clearing tile this . layerData [ x ] [ y ] = null ; // erase the corresponding area in the canvas if ( this . preRender ) { this . canvasRenderer . clearRect ( x * this . tilewidth , y * this . tileheight , this . tilewidth , this . tileheight ) ; } }
clear the tile at the specified position
@name clearTile
@memberOf me.TMXLayer
@public
@function
@param {Number} x X coordinate (in map coordinates: row/column)
@param {Number} y Y coordinate (in map coordinates: row/column)
@example
me.game.world.getChildByType(me.TMXLayer).forEach(function(layer) {
// clear all tiles at the given x,y coordinates
layer.clearTile(x, y);
});
clear the tile at the specified position