loading

Arduino Game Coding - FSR (Pressure Sensor) Based Shooting Game

I'm making a shooting style arcade game in which you shoot a projectile at four different force sensitive resistors trying to rack up as many points as possible before the timer runs out.

When a ball hits one of the fsr I want to have the arduino keep score and show it on a 16x2 lcd. Each one of the fsr have a different point value.
             Ex:  A ball hits fsr _1 giving the player 5pts, another hits fsr_3 giving the player another 15pts. The 60 second timer then runs out and  the game shows you your score on the lcd... 20pts.

I've been trying to wrap my head around how to code something like this but I am just making myself more confused. Any help would be appreciated! Thanks!

rickharris2 months ago

Is this in the real world or VR?

1. Get some hardware and try connecting a single sensor up and find out how to programme it into the micro.

2. Find out how to program the LDR display to display anything you want.,

3. Draw a flow diagram of events this is much easier to program from.

https://www.instructables.com/id/Starting-programm...

https://www.instructables.com/id/Lets-Program-a-PI...

https://www.instructables.com/id/Reading-Sensors-W...

should help