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 a4417a8 commit e93ffb3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ function draw() {
ball.vy *= 0.99;
ball.vy += 0.25;

if (ball.y + ball.vy > canvas.height - ball.radius || ball.y + ball.vy < ball.radius) {
if (
ball.y + ball.vy > canvas.height - ball.radius ||
ball.y + ball.vy < ball.radius
) {
ball.vy = -ball.vy;
}
if (ball.x + ball.vx > canvas.width - ball.radius || ball.x + ball.vx < ball.radius) {
Expand Down

0 comments on commit e93ffb3

Please sign in to comment.