Wednesday, May 15, 2013

Final Project!!!

SNAKE CHARMER


For my final project, I remade the retro arcade game snake in processing. The idea is simple, you move a snake around with a controller, and when you eat the white dots, the snake grows. You lose the game if you go out of the screen or run into yourself. In addition to making it look fantastic, I added a retro game controller using my Arduino. I originally planned to use foot-pedals to control the snake in a DDR fashion, however the foot pedals that I bought did not work for this project so I built the controller instead. The controller consists of four pushbuttons controlling the direction of the snake, and the entire thing is big enough to store the Arduino in and is thus self contained.  The part of the project I am most proud of is the movement of the snake, which I managed to make fluid. I did this by making each body member of the snake an object and averaging the x and y position of each object with the object in front of it each time the draw loop executed. The color of the snake is random but also gradual. Each new body object's color changes in a small but random amount when added to the snake, making the snake look beautiful.



Video 1: General Gameplay

Video 2: Toggling between circle and square view. (just for looks)

Opening Credits

Pause Screen

Game Over Screen

Inside the game controller




Thanks for a great semester! - Noah