Concept
For the final project I’ll be building a color memory game where the user sees colors generated at random by p5js and tries to match the colors by pressing arcade push buttons in the same order. And it gets tough as the game progresses. Every time the user gets it right a two-tiered trolley moves forward. The goal is to make the trolley/toy move as far as possible and close to the finish line within a short period of time.
Arduino and p5js
There will be serial communication between arduino and p5js in relaying the information concerning the color pressed (in arduino) against what has been displayed (on p5js) randomly. If there is a correct match between the two communication is sent back to the arduino to move the trolley forward. If not the p5js repeats the same pattern of colors previously displayed. There will also be a timer on the p5js screen to show the amount of time spent by the player.