Tuesday, September 18, 2012

Freekout! The game that's sweeping the nation!

 
For this project we were asked to design and implement something that demonstrates both digital input and output to realize some kind of creative physical interaction.  In this case our input was our two buttons.  This game is like a version of pong with a twist to it.  The lights will start by turning on and off, appearing to give either a clockwise or counterclockwise motion.  The first person the light reaches has to press their button during the time that the LED, located in front of their button, is lit.  In doing so the light will reverse it's motion and reverse toward the other player.  Although if you were to miss time your button press the light would not reverse in direction and you would know that you mistimed your button press.  Every time there is a successful "bounce-back" the incrament of time between each light turning on and off gets smaller, giving the appearance of a faster moving light.  After a player misses 5 times the other player is deemed the victor and the LED's on his side of the game board light up. 

Here's a few pictures of the initial process of the initial process of handywork/presoldering to give us a better idea of how our game was going to funcion.
 
 
 
After attempting to get the thing wired to the breadboard we did run into to  the little problem of not know which side of the pins that we soldered from our wires to our LEDs was positive and which side was ground.  This was solved by plugging the pins directly into our arduino to figure out which pin was which.  In doing so we marked every wire running to ground on the LED with a sharpie.  The image on the right is the product of a piece of code that lets you know who the official victor was.
 
 
Here's the beginnings of our foamcore frame that will encase the innerworkings of our game (breadboard, wires, and arduino).
 

Here's a video of us running a loop in our program after we discovered how to get each light to blink in concession clockwise.



The video below is of the final product of our programming.  It still had a few minor flaws at this point and we were going to make it even more aesthetically pleasing and exciting but after this video was taken we accidentally shutdown the desktop computer we were working on and deleted all of our code.  We did try to rewrite rewrite the program from the original code, but we thought it would be best not to try and upload it seeing as how our game functioned well enough for presentation with the original program still uploaded to it.
 
 
This is a video of the final product, frame and all.  We found that Freekout was a proper name for the game because it always seems to start off rather slowly but gains alot of momentum towards the end of the game causing you to "freekout" at the very end.
 

No comments:

Post a Comment