For this assignment, I used teachable machines for my background, pop, and stretch sounds.

Then I moved onto the code. I wanted to do bubbles and have them pop and stretch. At first I did the two separately with mouse click to control it. The first thing I did was to do bubble pop. When mouse is clicked, the bubbles will pop and new bubbles would float from the bottom to the top. I also capped the bubbles at around 200 so that there isn’t an overwhelming amount of bubbles.
The bubbles didn’t look too natural when popping because it was just bubbles reset. Thus, I added small particles to where the bubbles pop and also added gravity to it so that the particles fall like the particles of a bubble when it pops in real life.
I then moved onto the stretch. This one was a little easier to do since I already have the bubbles class from bubbles pop. Once again, this is on a new sketch (both had not been saved sadly), it was controlled by mouse click. Here the bubbles still float while it is being stretched, and no, it doesn’t pop after it’s stretched.
After those two sketches is figured out, I moved onto adding teachable machines into the code. This caused a little trouble because I had to move the different lines of code around for it to work properly.
https://drive.google.com/file/d/1fAV0aKnet_m5GSfqDzaO9109FPSz3mip/view?usp=drive_web
I felt that the stretching isn’t too natural and all too uniformed so I edited the code a little more for a natural feel (not that a bubble stretching is natural).
https://drive.google.com/file/d/1wOyVfuH1Q0EO0Yc3JQ-a7uZLqXfOXNVR/view?usp=drive_web