Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

stuff

  • Loading branch information...
commit 88b090df143abe945b0170b6c1f54c0b7b3896b0 1 parent 24030fa
@ericz authored
Showing with 6 additions and 6 deletions.
  1. +4 −4 admin/public/js/control.js
  2. +2 −2 admin/public/js/display.js
View
8 admin/public/js/control.js
@@ -9,13 +9,13 @@ $(function(){
$(window).keypress(function(e){
if(e.which == 119) {
- physics.movePaddle('1', -10);
+ physics.movePaddle('1', -25);
} else if(e.which == 115) {
- physics.movePaddle('1', 10);
+ physics.movePaddle('1', 25);
} else if(e.which == 111) {
- physics.movePaddle('2', -10);
+ physics.movePaddle('2', -25);
} else if(e.which == 108) {
- physics.movePaddle('2', 10);
+ physics.movePaddle('2', 25);
}
});
View
4 admin/public/js/display.js
@@ -2,8 +2,8 @@ var draw = function( drawables) {
var ballTop = drawables.ball.y - drawables.ball.radius - translate.y;
var ballLeft = drawables.ball.x - drawables.ball.radius - translate.x;
$("#ball").offset({ top: ballTop, left: ballLeft});
- $("#paddle1").offset({top: drawables.paddle['1'].y1, left: drawables.paddle['1'].x1});
- $("#paddle2").offset({top: drawables.paddle['2'].y1, left: drawables.paddle['2'].x1});
+ $("#paddle1").offset({top: drawables.paddle['1'].y1 - translate.y, left: drawables.paddle['1'].x1 - translate.x});
+ $("#paddle2").offset({top: drawables.paddle['2'].y1 - translate.y, left: drawables.paddle['2'].x1 - translate.x});
};
Please sign in to comment.
Something went wrong with that request. Please try again.