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. )

WX20201111-154449@2x的副本.png

301604853117_.pic_hd-scaled.jpg

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

Development

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:

  1. Potentiometer to change the emitting light value, making it larger or smaller.
  2. Accelerometer or FSR to change the position of the flower.
  3. Put the water sensor in water which changes the amount of rain.

The life box value could be kept if:

  1. Flower and light intersect on screen.