Processing + Arduino
We used Serial Communication with Processing and Arduino to make a Basketball Game. We used a potentiometer, a pressure Sensor, and a touch Sensor.
There is a line as indicator of shot direction, and a rectangle as indicator of shot strength.
Rotate the potentiometer to adjust the shot direction.
Tap the touch sensor to save the status of direction.
Press the pressure sensor to adjust the shot strength for original speed of shot.
Tap the touch sensor to save the status of shot strength and shoot basketball.
Basketball will be shot out according to the saved status before.
If basketball hits the basket, there is a “Good Job!“ text in the center of the window:
Else it will become “You Lose, Tap to Continue”: