PDA

View Full Version : Making a game with capacitive touch



wraggster
August 9th, 2012, 20:40
http://hackadaycom.files.wordpress.com/2012/08/controller1.jpeg
Hackaday has seen a ton of builds make use of the Arduino CapSense library of late, so it was only a matter of time before we posted a capacitive sensing game controller (http://www.treehouseprojects.ca/capsensegame/) that is able to move sprites around a screen.
For this build, the controller is made out of small strips of Aluminum foil, wired straight to an Arduino with a few resistors. Once embedded inside a wonderful enclosure that brings about pangs of nostalgia it’s time tow write the game.
For the game portion of the build, Processing was brought into the mix to create a SpongeBob-themed ‘capture all the jellyfish in jellyfish fields’ game. By taping the contacts for the d-pad, the player can move SpongeBob around to catch jellyfish. If you’d like to give the game a go, you can play it in your browser on the project page (http://www.treehouseprojects.ca/capsensegame/).
This isn’t the first – or the last – CapSense build we’ll see on Hackaday, but it is the first one dedicated to making a DIY (albeit Nintendo inspired) video game controller. If six buttons aren’t enough, you’ll just have to wait for the PS3 version.http://hackaday.com/2012/08/08/making-a-game-with-capacitive-touch/