Update index.html
Browse files- 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 =
|
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);
|