Skip to content

Commit 743f05c

Browse files
committed
196
1 parent b79496a commit 743f05c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pong.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ setInterval(function() {
99
i = h = "",
1010
K = K < 0 ? 0 : K > 24 ? 24 : K,
1111
X *= x % W ? 1 : -1,
12-
x < W ?
13-
Y *= -1 :
14-
x > H && (
15-
Y *= Math.abs(x - H - K - 2) < 2 ?
12+
13+
Y *=
14+
x < W ?
15+
-1 :
16+
x > H ? (
17+
Math.abs(x - H - K - 2) < 2 ?
1618
-1 :
1719
p
18-
),
20+
) : 1,
1921
x += Y * (W + X * Y);
2022
i++ < H + K;
2123
)

0 commit comments

Comments
 (0)