function drawTileToPrerender(map, index, x, y) {
        // render
        if (map.tileset.data)
            if (map.tileset.data.complete)
                map.prerender.canvas.context.drawImage(
                    map.tileset.data,
                    index * map.tileSize.x,
                    0,
                    map.tileSize.x,
                    map.tileSize.y,
                    x,
                    y,
                    map.tileSize.x,
                    map.tileSize.y
                );
    }
/**
     * Draws specified tile in map to its prerender canvas
     * @param {object} map   The map object
     * @param {number} index Time index to draw
     * @param {number} x     X position to draw the tile to
     * @param {number} y     Y position to draw the tile to
     */
Draws specified tile in map to its prerender canvas
@param {object} map   The map object
@param {number} index Time index to draw
@param {number} x     X position to draw the tile to
@param {number} y     Y position to draw the tile to
Draws specified tile in map to its prerender canvas @param { object } map The map object @param { number } index Time index to draw @param { number } x X position to draw the tile to @param { number } y Y position to draw the tile to
function drawTileToPrerender(map, index, x, y) {
        if (map.tileset.data)
            if (map.tileset.data.complete)
                map.prerender.canvas.context.drawImage(
                    map.tileset.data,
                    index * map.tileSize.x,
                    0,
                    map.tileSize.x,
                    map.tileSize.y,
                    x,
                    y,
                    map.tileSize.x,
                    map.tileSize.y
                );
    }
function drawTileToPrerender ( map , index , x , y ) { if ( map . tileset . data ) if ( map . tileset . data . complete ) map . prerender . canvas . context . drawImage ( map . tileset . data , index * map . tileSize . x , 0 , map . tileSize . x , map . tileSize . y , x , y , map . tileSize . x , map . tileSize . y ) ; }
Draws specified tile in map to its prerender canvas
 @param {object} map   The map object
 @param {number} index Time index to draw
 @param {number} x     X position to draw the tile to
 @param {number} y     Y position to draw the tile to
Draws specified tile in map to its prerender canvas @param { object } map The map object @param { number } index Time index to draw @param { number } x X position to draw the tile to @param { number } y Y position to draw the tile to
// render