visuco
Challenge 7 of 16

Four ifs now, one for each edge, and the ball works its way around the window at an angle. Neither axis knows about the other — each just flips its own speed when it meets its own wall.

Set the right wall and the floor.

Your code JavaScript

Set the right wall and the floor.

0 / 60 frames · 400×400
Target
Yours
Results
0%
Press Run to check your code
Penalties: none this run

Report this challenge