wand changes

This commit is contained in:
James B. Pollack 2015-09-21 17:01:31 -07:00
parent 2cb875e40d
commit 81358b7f14

View file

@ -40,6 +40,20 @@
var _this;
function interval() {
var lastTime = new Date().getTime() / 1000;
return function getInterval() {
var newTime = new Date().getTime() / 1000;
var delta = newTime - lastTime;
lastTime = newTime;
return delta;
};
}
var checkInterval = interval();
var BubbleWand = function() {
_this = this;
}
@ -220,7 +234,7 @@
}
},
continueNearGrab: function() {
print('time passed:::' + checkInterval());
if (this.timePassed === null) {
this.timePassed = Date.now();
} else {