BASH games

bash-gaming-script

Get serious about your shell scripting skills and maybe you can pull this one off. It’s a game of snake played in a BASH shell. It seems like a coding nightmare, but the final product turns out to be organized well enough for us to understand and took less than 250 lines of code.

[Martin Bruchanov] started on the project after pining for an old DOS game called Housenka. It’s another version of the classic Snake game which we’ve coded ourselves and seen in several projects including this head-to-head version using musical recorders as controllers. When using a terminal emulator capable of ANSI sequences the game is displayed in color using extended characters.

We give [Martin] bonus points for the way he wrote about his project. It describes the mechanics most would be interested in, like how the user input is captured and what drives the update function and food generation. The rest of the details can be gleaned by reading through the code itself.

Art installation plots every game of Lunar Lander that is played

This art installation makes a video game from the 1970’s popular again. It can be found at the Dublin Science Gallery’s GAME exhibition. Museum goers step up to the coin-op style game cabinet and the onlookers will see how they’re doing as the landing is plotted on this board.

Hardware details are a bit hard to come by but we hear that there will me more on the build posted soon. For now the Flickr set is the best source of information. From reading the captions we know that a set of three Mac minis run everything. There are also a few close-ups and a video overview of the drive hardware which you can see mounted on the upper left of the image above. We can tell you that this is a string plotter similar to builds we’ve seen in the past. The telemetry data from the Lunar Lander game is converted to instructions and fed directly to that device. See it in action in the clip after the break.

[Read more...]

Scripting to automate your mindless Android games

There’s a silly little Android game making some noise on the Interwebs. It’s called Curiosity which is a 3D cube with something inside. The thing is, every single pixel on the cube must be clicked in order to get through a layer. There are of course multiple layers, and… well, you get the point. [Stephen] figures this is a perfect thing for a bit of scripting and set out to find a way to automatically play the Android game.

As you can see above he’s got a pretty good start. To use the script in its current form he finds a part of the cube that is mostly solid green. The Android device is plugged into a computer using the USB cable, and the Android Debug Bridge runs the script. It’s amazingly simple, as it uses the monkeyrunner package which comes with the SDK. The proof is there, and it’s just a matter of whether or not he wants to spend his time to fully automate the playing of the game. You can see a demo of the script embedded after the break.

[Stephen's] not new to automating things that he doesn’t want to do himself. Here’s an example of his code beating the PlayThru CAPTCHA.

[Read more...]

Fantastic programming makes this Arduino gaming device something special

The hardware that went into this Arduino gaming console is just fine. But the coding that produced this game called Twisted SNAKE is beyond compare. [Rodot] has programmed several games for the hardware, which uses an Arduino, 160×168 TFT screen, a 3 axis accelerometer, and two input buttons. If you’re interested, there is a forum thread in which he talks a bit more about the hardware design. But you’re not going to want to pass up either of the two videos embedded after the break.

The first clip shows off a bouncing-ball platforming game. The accelerometer moves the ball back and forth, and the top scrolling level brings more ledges into play. This in itself is a great game. But the Twisted SNAKE game shown off in the second video makes our own ARM-based Snake game look like a 3-year-old programmed it. [Rodot] filled up all of the program memory of the ATmega328 chip to  make this happen. There’s a menu system which allows for color themes and difficulty selection. The game play itself lets the snake travel anywhere it wishes with the tail following behind in graceful curves. Wow!

[Read more...]

Nyan Cat: the PlayStation game

We’d bet you didn’t know there was a Nyan Cat game for the original PlayStation. Well, there wasn’t one until very recently. This isn’t a title that has been licensed by Sony, and we bet you won’t spend hours playing such a thing. But the concept has let [Haunted] hone his development skills.

We’re not certain how he’s getting around the copy protection for PSX games, but we know there are a few different exploits out there. If you happen to have your own method playing homebrew games you can even download the bin/cue files to try this out for yourself.

After the break you can watch a demo clip of the game. It boots like normal until you hit a black screen with white text which displays a loading percentage. This is followed closely by the rainbow spewing feline pastry. The sound takes a minute to play but you can be sure it’s there. Currently there’s no scoring system but that’s in the works for a future revision.

[Read more...]

Classic game of Snake on an ARM controller

Every now and again we take a break from looking at all of your awesome projects and get to work on our own. I thought I’d take a minute to show off my game of Snake. It’s a classic that I remember playing on a graphing calculator (TI-83) back in high school. I had never written my own version and decided it would be a good reason to spend some more time on the ARM platform.

The dev board I’m using is the STM32 F0 Discovery board. Once I had a usable template for compiling the code on a Linux box everything else just started to fall into place. The screen is from a Nokia 3595. Several years back I cut off the keypad and made a breakout board for it. It’s pretty dim but it’s small and uses SPI so it tends to be my go-to display for prototyping. But I did get my hands on an SSD1289 TFT screen (after writing about this project) for about $16 and I’ve had some success with that. It uses a parallel interface so it’s not as easy to hook up and I’ve had some crosstalk issues when running at 24 MHz.

But I digress. Check out the demo video of my simple game after the break. There are more details about my programming choices at post link above. You will see this hardware again soon. I’m working on an On Chip Debugging primer and these ARM dev boards are perfect for it!

[Read more...]

Adding a sound synthesizer to a ‘don’t-touch-the-sides’ maze game

Part of the fun of the classic game of Operation is the jump you get from the loud buzzer which sounds if you touch the sides. This exhibit piece uses the same principle of lining the edges of a track with metal, but instead of an annoying buzz, each touch will issue a bit of music. That’s because the maze has been paired with a synthesizer. Instead of one sound wherever the stylus touches the sides, different parts of the maze act as one of 94 keys for the synthesizer.

There’s a lot more built into the base of the device than just a maze game. The knobs are used to alter the audio effects and the buttons work in conjunction with they stylus to sequence audio samples. There’s even a graphic LCD screen which shows the currently playing wave form. You can get a better look at the project in the video after the break.

[Read more...]