Posts | Comments

Planet Arduino

Archive for the ‘TWANG’ Category

While video games have grown more and more complex over the last few decades, TWANG takes things in the opposite direction as an Arduino Mega-based 1D dungeon crawler consisting of an RGB LED strip.

The player—a dot—is controlled via an accelerometer mounted to a door spring used as a joystick. With it, the player can move forwards, backwards, and attack by “twanging” the spring to make it vibrate. The LEDs display a wide array of colors, including representations of glowing lava, water, and player disintegration when a mistake is made.

TWANG is inspired by the Line Wobbler game from Robin Baumgarten, and beautifully implemented as shown in the video below by Barton Dring. Code for the build can be found here, and 3D print files for the housing/joystick are also available.

A delightful version of a clever one-dimensional game has been made by [Critters] which he calls TWANG! because the joystick is made from a spring doorstop with an accelerometer in the tip. The game itself is played out on an RGB LED strip. As a result, the game world, the player, goal, and enemies are all represented on a single line of LEDs.

How can a dungeon crawler game be represented in 1D, and how is this unusual game played? The goal is for the player (a green dot) to reach the goal (a blue dot) to advance to the next level. Making this more difficult are enemies (red dots) which move in different ways. The joystick is moved left or right to advance the player’s blue dot left or right, and the player can attack with a “twang” motion of the joystick, which eliminates nearby enemies. By playing with brightness and color, a surprising amount of gameplay can be jammed into a one-dimensional display!

Code for TWANG! is on github and models for 3D printing the physical pieces are on Thingiverse. The video (embedded below) focuses mainly on the development process, but does have the gameplay elements explained as well and demonstrates some slick animations and sharp feedback.

Using a spring doorstop as a controller is neat as heck as well as intuitive, but possibly not quite as intuitive as using an actual car as a video game controller.



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook