diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-30 12:24:39 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-30 12:24:39 -0400 |
| commit | dea857bcfb9695a1e205b7cf224388660c2735af (patch) | |
| tree | 783a36ad12e04af330f3cdfb237eed69a4928704 /public/assets/javascripts/rectangles/engine/map/_map.js | |
| parent | 94ba321f96638906e41eda7abf371066011c8508 (diff) | |
minimap can pivot with camera orientation
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/map/_map.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/map/_map.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/assets/javascripts/rectangles/engine/map/_map.js b/public/assets/javascripts/rectangles/engine/map/_map.js index d582982..bf646bb 100644 --- a/public/assets/javascripts/rectangles/engine/map/_map.js +++ b/public/assets/javascripts/rectangles/engine/map/_map.js @@ -16,6 +16,7 @@ var Map = function(opt){ var base = this base.el = opt.el base.$el = $(base.el) + base.opt = opt if (! base.el) return @@ -33,7 +34,6 @@ var Map = function(opt){ scene.camera.x + sides.a, scene.camera.z + sides.b ) } - base.set_zoom = function (n) { n = clamp(n, opt.zoom_min, opt.zoom_max) base.zoom_exponent = n |
