HTML and CSS Reference
Step 6: Create the ball
Now, with your new knowledge of arcs, you can create the ball using the next listing. Modi-
fy the existing Ball object with the following code.
Listing 6.7. game.js—Ball creation
Next up, you'll work on the paddle.
6.2.4. Using paths to create complex shapes