awacke1 commited on
Commit
ffbe590
·
verified ·
1 Parent(s): 1397ca9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -70,7 +70,7 @@ paddle.position.x += paddleSpeed;
70
  var mouseSpeed = 0.1;
71
  if (mouseX !== null && mouseY !== null) {
72
  paddle.position.x = (mouseX / window.innerWidth) * 50 - 25;
73
- paddle.position.z = -(-mouseY / window.innerHeight) * 50 + 25;
74
  }
75
  for (var i = 0; i < balls.length; i++) {
76
  balls[i].position.add(balls[i].velocity);
 
70
  var mouseSpeed = 0.1;
71
  if (mouseX !== null && mouseY !== null) {
72
  paddle.position.x = (mouseX / window.innerWidth) * 50 - 25;
73
+ paddle.position.z = (mouseY / window.innerHeight) * 50 + 25;
74
  }
75
  for (var i = 0; i < balls.length; i++) {
76
  balls[i].position.add(balls[i].velocity);