WEEK: 7
Active: February 21st - February 27th
Work Due: February 28th @ 9:00AM

Homework

The following code produces a bouncing ball that stays within the canvas window. Also notice, that when you click in the canvas, the angle of the ball’s path changes.

[ Code Download ] [ View on GitHub ] [ Live Example ]

For your homework this week, you are to download the above code package from the following link.

Part 1

In the readme.md file, you should then;

  • Describe, in detail, what the original code is doing. Make sure to address;
    1. Why is it working the way it is?
    2. What does each line do?
    3. How can you make the ball change direction?

Part 2

Alter the code and make it more “interesting”. Make changes to the Bouncing Ball sketch that make it more interesting to you. Please must some of the additional techniques presented this week.

Part 3

When you are done, upload your links to HW submission forum.


Previous section: