ICM · Week 2

Prompt of This Week’s Assignment

  • 1 element controlled by the mouse
  • 1 element that changes over time, independent of the mouse
  • 1 element that is different every time you run the sketch

Creating My Sketch

I was able to become slightly more familiar with incorporating variables through working on the worksheet questions this week and also this sketch assignment.

My element being controlled by the mouse is the bird, and I was able to complete this part fairly smoothly as one of the questions in the worksheet asked for the same thing. I only had to add some additional elements to the bird body by slightly shifting the x and y of the shapes.

My element that changes over time, independent of the mouse, are the clouds. I was able to make the clouds float from left to right, but struggled to make it float the opposite way I think due to the way I define my variables. I feel that I still need to look into more resources related to this to better understand how I should define and use variables in order for me to apply the concept more broadly. Also, I couldn’t figure out how to make my clouds bounce back after hitting the side of the screen instead of having them float off and disappear, and would need to look more into this as well.

My element that is different every time I run the sketch is the main house. I was able to make my house change color every time I run the sketch successfully, but am wondering how to limit the changing colors as I tried setting limitations to my code but didn’t seem to work. Once in a while I would get a fairly dark color which I don’t like (even though the change is fairly small), and would want to try to prevent this from happening if possible.

Overall, I feel that I was able to achieve the tasks given in the prompt, but would hope to improve and learn even more through fixing some of the details and strive to achieve those of what I mentioned above for each element.

Links to My Week 2 Assignment

House

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s