Posts | Comments

Planet Arduino

Archive for the ‘Arduino Game’ Category

Interactive video games take many forms, but for the most part, each player has a separate controller that manipulates an onscreen character, vehicle, or other singular element. What if, as in real life, multiple players have to work together with physical objects to control a sailing ship?

That’s the idea behind HOT SWAP: All Hands On Deck by Peter Gyory and Celment Zheng. In it, two players guide various parts of a ship using five different control elements. What makes this really interesting is that each player’s input device has room for two of these control elements, which must be swapped for actions such as steering and to load cannons. Input information is passed to the game via an Arduino Micro

It’s like if we took a regular game controller, popped off all of the inputs, and made it so you could only use a couple of them at a time. There are two controllers, with each consisting of two input slots. Each controller controls one side of the ship, port or starboard. There are five actions total in the game, each executed with a dedicated physical input: a crank to raise and lower the sails, a wheel for turning the rudder, a hatch for loading the cannons, a wick for firing the cannons, and a flame button for dousing the fire.

There is only one of each input, which makes them a shared resource that players must trade back and forth as they play. There is this old Milton Bradley kids board game from the ’90s called Perfection where players must fit shapes into holes before a timer is up and the board shakes to make everything pop out. HOT SWAP is like if Perfection had a screen attached and had a goal outside of putting shapes into slots.

All of the code is done with JavaScript and the library Three.js, which we bundle into a desktop application using Github’s Electron. The brain of the controller is an Arduino Micro, which mostly just passes data along.

The inputs are created with the Mechamagnets technique that Clement has been developing through his research; all 3D-printed in PLA with neodymium magnets embedded in them. The actual “hot swapping” is facilitated by pogo pins that line up with our custom PCBs for each input. Also, lots of chocolate croissants.

More details on the build are available via this interview as well as in the video below.

Hunt the Wumpus is a text-based survival/horror game developed in 1973. As such, it’s perhaps due for an update, and Benjamin C. Faure was able to do so using an Arduino Mega to run a graphical version on an 8×8 MAX7219 LED display.

The game consists of moving your character through the 64-LED randomly generated world, avoiding pits and bats, attempting to face the Wumpus to fire your one arrow. Navigation is aided by “wind” and “stench” lights, indicating either a pit or the foul Wumpus is nearby. The game is also enhanced with a few LED animations and a small piezo speaker. 

On startup, the game will generate an 8×8 map for the player that contains bats, pits, and a Wumpus. The player must pay attention to their senses to ensure they don’t fall into a pit or run into a Wumpus. Running into a bat might not be instant death, but they can carry you over a pit or even straight to the Wumpus.

If the player wishes to win, they must pinpoint the location of the Wumpus. Then, they must take one step towards the Wumpus (so that they are facing the proper direction) and fire their only arrow. If they hit the Wumpus, they win! If they miscalculated, however, they will meet a grisly fate.

A demo can be seen below, while code for the project is available on GitHub.

At some point in your life, you may have wrestled over the preferred sofa cushion on which to sit, but what if these informal games of couch dominance were codified into an actual contest? That’s the idea behind the co-op game by Carol Mertz and Francesca Carletto-Leon, aptly named “HELLCOUCH.”

Unlike most “video” games, this system—which runs on an Arduino along with the Unity game engine—has no screen. Instead, it relies on lighting and audio cues to guide the players on where to sit, or as its disembodied voice puts it, “Perform the sacred butt ritual!” 

The game takes around 90 seconds to play, during which time participants’ normal attitudes about giving each other space—and not bouncing around on the couch like crazy people—are thoroughly questioned.

It’s a challenge. At first glance, HELLCOUCH is designed to look like just a regular couch, so players don’t necessarily enter into it with the expectation of being silly and letting their guard down. We didn’t design an attract mode, and were careful to keep any indication of it being a “possessed” couch hidden until someone sits down. As soon as a butt hits a cushion, though, players are met with a loud thunderclap, demonic cackling, and a fiery array of lights. And when the game starts, solo sitters have to face the fact that they’re not going to be able to play alone, so they need to figure out how to get another butt or two in the game.
This theme and sound design are meant to set the stage for humor and joyful play. The first guidance players get is a disembodied demonic voice declaring that they need to “perform the sacred butt ritual,” which often makes players giggle or raise an eyebrow. The game only takes about 90 seconds to play, but often by the end folks get very comfortable embracing their role as a goofy demon liberator.


According to this project’s write-up, while some struggle to get enough nourishment, those in more developed countries often aspire to consume too little food. As an apparent commentary on this situation, Niklas Roy and Kati Hyyppä have created a mechatronic game called J’ai faim!, French for “I’m hungry!”

In this Arduino-controlled game, participants rotate a Barbie head to point her comically over-sized tongue over a piece of sushi lit up by an LED. When in position, the player fires her solenoid-actuated tongue using the joystick, and if the correct sushi is eaten the score progresses from “starving” to “well fed.” 

You can see the game—reminiscent of a very strange version of whack-a-mole—in the video below.



  • 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