diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-06-20 14:13:29 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-06-20 14:13:29 -0400 |
| commit | 712387da2f75c845807ad4489b29fec34bfe9a56 (patch) | |
| tree | 2fab35671b730b7305b920ba1b63299fd8fa4922 /public/assets/javascripts/rectangles/_env.js | |
| parent | 9151023c978bd3aed20ad00d5d3301dfe7ed2a2a (diff) | |
| parent | 1668d6e2e20c9bd53f3f6a299541c582da9742b4 (diff) | |
merge
Diffstat (limited to 'public/assets/javascripts/rectangles/_env.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/_env.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/public/assets/javascripts/rectangles/_env.js b/public/assets/javascripts/rectangles/_env.js index 1b95989..1e89696 100644 --- a/public/assets/javascripts/rectangles/_env.js +++ b/public/assets/javascripts/rectangles/_env.js @@ -22,15 +22,25 @@ environment.init = function(){ app.movements.gravity(true) - // $("#map").hide() - Rooms.init() Scenery.init() scene.update() environment.update() + + var minimap_el = document.querySelector("#minimap .el") + if (minimap_el) { + window.minimap = new Map ({ + type: "minimap", + el: document.querySelector("#minimap .el"), + width: 130, + height: 130, + zoom: -4.8 + }) + } } environment.update = function(t){ map.update() + window.minimap && window.minimap.update && minimap.update() z = false } |
