summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/engine/map/_map.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-30 12:24:39 -0400
committerJules Laplace <jules@okfoc.us>2015-04-30 12:24:39 -0400
commitdea857bcfb9695a1e205b7cf224388660c2735af (patch)
tree783a36ad12e04af330f3cdfb237eed69a4928704 /public/assets/javascripts/rectangles/engine/map/_map.js
parent94ba321f96638906e41eda7abf371066011c8508 (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.js2
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