Skip to content

Commit 5f782b2

Browse files
committed
Update comments.
1 parent 51e63f0 commit 5f782b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

annotated.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ setInterval(function() {
2323
297 < x ? ( // if ball hits bottom border ...
2424
1 % (
2525
x - 299 - k // calculate distance to paddle center
26-
) ? // if distance is 0, 1, -1
27-
p : // ... reflect up
28-
-1 // otherwise break the game
26+
) ? // if distance is not 0, 1, -1
27+
p : // ... break the game
28+
-1 // otherwise reflect up
2929
) : Y,
3030

3131
x += Y * (W + X * Y); // update ball position based on direction

0 commit comments

Comments
 (0)