Continue with my flower idea from project1, I made this game, FLOWER 2.0.
By putting my breadboard inside this flower box, it is like that players is controlling the flower appeared on the screen in real life.
(It turns out that I did not continue to use FSR and potentiometer as my input. )
Arduino inputs:
X and Y value from accelerometer inside Arduino Nano. X for flower’s position, Y for intensity of sunlight.
Water sensor for rain amount.
https://www.youtube.com/watch?v=8dMzmAJBRlI
https://www.youtube.com/watch?v=ZtTznHXiGPs
Play it: (my controller needed) https://editor.p5js.org/wwlr9/present/6WqJtPhwq
Continuing with my flower idea, on the canvas, I have sun with emitting light, flower, rain and a life box.
With this life value box, my project2 is basically a small game. The life box decreases constantly. When it reaches the end, the background will become black, and the game is over.
Players should interact with the following to keep the life box value and flower alive:
The life box value could be kept if: