Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz committed Feb 18, 2012
1 parent 491ae55 commit ce8511d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ var vel = {x:30,y:30};
var running = true;
var hard, soft;
var shot3;
var interval;

physics = {
stop: function(){
clearInterval(interval);
},
genericRotation:function(orient) {
var rotate = function(x, y) {
var angle = poooop * Math.PI / 2;
Expand Down Expand Up @@ -64,7 +69,7 @@ physics = {
paddle2.y2 = paddle2.y1+150;
ball.x = x;
ball.y = y;
setInterval(physics.update, 200);
interval = setInterval(physics.update, 200);
},
/** Translates entire bounds by offset. */
translate:function(raw) {
Expand Down

0 comments on commit ce8511d

Please sign in to comment.