As part of the simulator. I wanted the fire hose to track the user’s hands and subsequently shoot “water”, more like “Particles” that we saw from the class example.
Evidently, while it is able to track. The positioning of the fire hose with respect to the user’s hands is very off. I had to adjust the positioning of the fire hose to align it better with the users hands.
Much better. My lamp is on fire.
https://editor.p5js.org/Dames19/sketches/wsOFPPdrJ
Here’s my code progress. I will not change the name of it. I like it.
I did not really like the Fire image that i was using. It looked too weird and clunky in my opinion. Especially for children. So i replaced it with
While the fire looks less scary, I think it is visually more coherent with the game. At least it doesn’t look as clunky.
To add some level of additional engagement, I did not want the water to just shoot out from the players hands. Instead i wanted there to be a trigger. This will simulate the squeezing of the trigger found on the fire hose.
In this case, i am tracking my the distance between the tip of my index finger and my thumb. Clenching them will trigger the particle effect shooting out of the hose. Emulating water coming out of the hose.