Working with Joseph Trotta and Julienne Ablay, together we made a game of pong. However we added more user interaction but incorporating a sonic range finder to track the movements of one of the players. In order to play, one of the players used their body to control the movements of the paddle/slider.
The range finder was mounted onto the lab table to prevent the a lot of movement to effect the finder's input. players will stand in front of the finder and as the move closer to the range finder, the slider/paddle would move upward, as they move a further away, the slider would move down. As for the other player, they would play using the keyboard.
For the code, the arduino would read in information about the player and read it into the pong project (made in processing). Those inputs would be converted into a range between 0-700 (The height of the screen minus 100 to accommodate for the length of the slider). The pong program was coded by the group.
To help balance this game, the slider controlled by the range finder moved very quickly but was hard to be accurate with while the slider controlled by the key board was more accurate but much slower. It is definitely interesting to both watch and play this version of pong and was a lot of fun to make.
No comments:
Post a Comment