Summary
For the homework this week, I wanted to make a simple game where the user uses their nose to control the frog’s tongue and eat flies. The final product I have is below. When the frog eats a fly, a sound effect goes off and the fly turns red and disappears to indicate the user successfully ate the fly.
Discussion
I came across a lot of difficulties while coding for this assignment. The first issue was getting the flies to react to the tongue touching them by using my nose. I was confused because the code would work fine when I used my mouse, however after talking to Professor Moon, we were able to figure out that I had issues with my camera code. Initially I set the camera size too large which Moon explained to me that this can cause the tongue to not only be laggier, but also skew the nose detection.
He also helped me make my flies appear less frequently and rapidly by showing me the if (random(1) < 0.03) which makes the info within the if statement appear only 3% of the time.
After resolving these issues, I spent a lot of time trying to make the flies look like flies however this was difficult for me because it was hard to create drawings when the shapes generate in places randomly and are different sizes.
Since I wanted it to be clear that these were flies, I wanted to insert sound effects such as fly buzzing and eating sound effects. I was able to make a Yoshi eating sound when the tongue touches the fly and also had the buzzing sound working but I decided to take it out because it got too annoying to listen to constantly.
Conclusion
It’s been very cool being able to utilize my face rather than the keyboard of mouse to create interaction, however there is definitely a lot of more practice I need to become comfortable and familiar with the coding and getting it to work. Also, I believe I would like to practice drawing more so that I can make more immersive content in the future.