Author Options:

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

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!

1 Replies

rickharris (author)2017-04-20

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.




should help

Select as Best AnswerUndo Best Answer