For this week assignment, I decided to continue working on my black cat sketch from last week! My plan was to
- Make the eyes follow the mouse
- Make the cat drool randomly
- Draw random shapes on the background
After several attempts at using atan2 function to make the eyes move (and failed miserably), I gave up and reached out to one of the Residents. She suggested to map the eyes to the mouse instead of using atan2 since the latter requires a lot of calculation and it’s likely that I’ll get confused. Mapping was a lot simpler so I was able to finish the eye movement in no time!
As for no.2, I could somehow make the cat keep drooling on its own, which is nice, but still not exactly what I wanted. I thought it would be better if I could make the saliva drop randomly (in terms of starting point, size and speed) since now it just follows the same repeating pattern.
I didn’t have any problems working on no.3. I decided to make a text appear in different places every time I run the sketch. Everything went pretty smoothly. The only thing I’m concerned about is that I get VERY dizzy every time I look at my sketch since the text just keeps jumping around and you can’t actually read it. I will try to make it move in a slower manner later!
Here’s the link to my sketch.