LIVE CODE HERE
This week, we reviewed objects, arrays and functions in class, and the assignment was to come up with something that would basically bring all of those things together.
I decided I also wanted to incorporate some sort of picture, so I decided to do a sketch of a girl blowing bubbles. Sounds simple, but the simple things are often the most complex, I have found.
I found a cool silhouette on the internet and vectorized it on illustrator. Once that was done I started working on my code so that whenever you press the mouse it’s as if the girl is blowing bubbles (I got a cool pcomp/icm combo idea for this for later on too). I focused on starting small and simple: making one bubble and making it do what I wanted it to do.
After struggling a bit with arrays, I booked some office ours (hi Dan!) and was able to figure it out. After that it was a matter of tweaking and getting the code to look the way I wanted to. Lastly, on Tuesday morning we met again to go over the P5 play library–just because–and I managed to get help on the final little bits of the code… I’m looking at you splice().
I liked this week. I was able to take the time to make the code work the way I wanted to, and to really get a handle on functions and arrays. I’m sure I’ve got a long way ahead of me in the world of code, but I feel much better with arrays now, which I know is imperative I get a handle on.
Onwards and upwards!