Hi guys,
I’m having a bit of a problem with a project. This is the first time i’ve used Arduino in any way, so please bear with me.
I’m trying to create a game where:
- a ‘Green Zone’ is ‘randomly’ picked out from an array of six numbers
- A ‘ball’ (one pixel, blue) that reacts to a pressure sensor to determine its distance
- If the blue ball reaches the green zone, a brief rainbow animation is played and then the green zone is shortened.
On some occasions, I can get the green zone working (never got the randomness right), but it has never worked WITH the ball pixel. I’m just really stuck and I could really use some help…
The code feels super super messy so… here it is: http://pastebin.com/Dcx96hpt
Any advice I get is GREATLY appreciated.