define(
// Requirements
["lib/jquery"],

// Module definition
function () {

var MiniMap = function (config) {
    var self = this
        defaultConfig = {
            container : $("body"),
            cellSize  : 10,
            viewRadius: 5
        };
    
    config = $.extend({}, defaultConfig, config);
    
    // Make sure our container element is wrapped in jQuery.
    config.container = $(config.container);
    
    var _tiles;
    
    /**
     * Draw the map centering around the given position.
     *
     * @param {Number} x - X position.
     * @param {Number} y - Y position.
     * @param {Object} map - The Map Object to draw.
     */
    self.draw = function (x, y, map) {
        var tiles = map.getTilesInArea(x, y, config.viewRadius);
        var xi, yi, xlen, ylen;
        for(xi=0, xlen=_tiles.length; xi<xlen; xi++) {
            for(yi=0, ylen=_tiles[xi].length; yi<ylen; yi++) {
                self.drawTile(_tiles[xi][yi], tiles[xi][yi]);
            }
        }
    };
    
    /**
     * Draw an individual tile.
     *
     * @param {Object} tile - A Tile object.
     */
    self.drawTile = function (tileSprite, tileData) {
        if (tileData.passable) {
            tileSprite.css({
                "background": "white"
            });
        } else {
            tileSprite.css({
                "background": "black"
            });
        }
    }
    
    /**
     * Initializes the mini-map container and gets it ready to display a cross-
     * section of a map.
     * @private
     */
    function _initContainer () {
        // Set size of the view.
        config.container.css({
            width : ((config.viewRadius * 2) * config.cellSize) + "px",
            height: ((config.viewRadius * 2) * config.cellSize) + "px"
        });
        
        var xi = 0, xlen = (config.viewRadius * 2),
            yi = 0, ylen = (config.viewRadius * 2),
            tileEl = $("<div class='tile'></div>");
            
        _tiles = [];
        
        for(; xi<xlen; xi++) {
            _tiles[xi] = [];
            for(yi=0; yi<ylen; yi++) {
                var t = tileEl.clone();
                t.css({
                    "top" : (yi * config.cellSize) + "px",
                    "left": (xi * config.cellSize) + "px",
                    "width" : config.cellSize + "px",
                    "height": config.cellSize + "px"
                });
                config.container.append(t);
                _tiles[xi][yi] = t;
            }
        }
    }
    
    // Initialize the MiniMap instance.
    _initContainer();
}

return MiniMap;

});
@@ -437,11 +437,17 @@
 tile
+Sprite
 s;%0A
-
     
@@ -822,16 +822,22 @@
 en=_tile
+Sprite
 s.length
@@ -883,24 +883,30 @@
 , ylen=_tile
+Sprite
 s%5Bxi%5D.length
@@ -955,24 +955,30 @@
 awTile(_tile
+Sprite
 s%5Bxi%5D%5Byi%5D, t
@@ -1995,24 +1995,30 @@
        _tile
+Sprite
 s = %5B%5D;%0A    
@@ -2066,24 +2066,30 @@
        _tile
+Sprite
 s%5Bxi%5D = %5B%5D;%0A
@@ -2480,16 +2480,16 @@
 end(t);%0A
-
         
@@ -2497,24 +2497,30 @@
        _tile
+Sprite
 s%5Bxi%5D%5Byi%5D = 

Rename _tiles to _tileSprites in mini-map.js