"Get Your Hack On" is an old-school text adventure played entirely through text messages. The game was completely written and created by myself. As such, you may quickly find I'm no writer.

Most of the time in this hack was dedicated to the creation of the game engine and its resulting dialog. The Twilio API made texting messages back and forth one of the easiest things I've ever done.

HOW TO PLAY: start texting 1-920-645-2230. Your first time texting it will give you hints on command(s) to get you start.

If you don't get a response within 30 seconds send the command again. My website host's MySQL database has been a bit flaky today, and is causing some intermittent web page loading failures.

Ever heard of the game Zork? If you have, you know exactly what to expect from this game. You text in messages corresponding to actions and objects to play through the game, trying to make it to BoilerMake.

Will you make it to the hackathon?

Will I finish enough of the game in time to allow you to make it to the hackathon?

The world may never know.

Technical Details

The idea itself is made possible by Twilio. When I heard they were giving away a bunch of retro game consoles for their prize I thought what better way to use the Twilio than an old-school text adventure.

Initially I was going to hook up an implementation of the game Zork to work through Twilio, but then decided I wanted to make my own text adventure based around this hackathon.

For the game backend I created a text adventure engine myself, essentially grouping things into rooms, objects, actions and a variables system, saving state to an array that is serialized and stored in a MySQL database with a person's phone number used as the primary key for the record.

After I decided on doing this as my hack, I went to talk to one of the Twilio representatives, only to find out this has been done before. My iteration is vastly improved over the the previous one (which I was able to find with a quick google search for Zork Twilio).

The person who implemented the Twilio Zork game used the pre-made Zork game and just hooked the input/output directly up to Twilio. My implementation was to create my own game engine, text parser, and database solution from scratch, making my implementation highly flexible and easily changeable.

Share this project:
×

Updates