summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/map/_map.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-04-22 03:22:56 -0400
committerJulie Lala <jules@okfoc.us>2014-04-22 03:22:56 -0400
commit62ee4fecc35772670b092b220cb29c7aa7b58b50 (patch)
treeef0dfc47977dc10c30bc6b20377d02e2b88e3891 /assets/javascripts/rectangles/map/_map.js
parent7d73354432c714fffa47563d0424cc51964238d3 (diff)
keyboard, stones demo
Diffstat (limited to 'assets/javascripts/rectangles/map/_map.js')
-rw-r--r--assets/javascripts/rectangles/map/_map.js5
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()
+ }
}