Skip to content

Commit

Permalink
Wraps long code
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
GniLudio and github-actions[bot] authored Jan 26, 2024
1 parent 6949289 commit a4417a8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ function draw() {
) {
ball.vy = -ball.vy;
}
if (ball.x + ball.vx > canvas.width - ball.radius || ball.x + ball.vx < ball.radius) {
if (
ball.x + ball.vx > canvas.width - ball.radius ||
ball.x + ball.vx < ball.radius
) {
ball.vx = -ball.vx;
}

Expand Down

0 comments on commit a4417a8

Please sign in to comment.