diff options
Diffstat (limited to 'assets/javascripts/rectangles/map/_map.js')
| -rw-r--r-- | assets/javascripts/rectangles/map/_map.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/assets/javascripts/rectangles/map/_map.js b/assets/javascripts/rectangles/map/_map.js index 20db8fc..2815b89 100644 --- a/assets/javascripts/rectangles/map/_map.js +++ b/assets/javascripts/rectangles/map/_map.js @@ -5,6 +5,7 @@ window.ctx = window.w = window.h = null; var map = new function(){ var base = this + base.el = document.querySelector("#map") base.dimensions = new vec2(500,500) base.bounds = new vec2(500,500) base.center = new vec2(0,0) @@ -26,5 +27,9 @@ var map = new function(){ base.update = function(){ base.draw.animate() } + + base.toggle = function(){ + $(base.el).toggle() + } } |
