Friday, January 7, 2011

Text-based adventures!


Have you ever wanted to create your own text-based adventure game? I recently wrote my own in Python. It's quite primitive. The player can't do much besides collect coins and then buy a useless text dragon, at which point they win the game. I highly recommend Python if you're just starting to learn programming - it's fun and easy! (At first. Then it gets very, very hard. And painful.)

If you want to experiment with a programming language that's dedicated to the creation of text adventures, try Inform. (It's completely free!) From their website: "Inform is a design system for interactive fiction based on natural language. It is a radical reinvention of the way interactive fiction is designed, guided by contemporary work in semantics." Inform's code is written in plain English. It actually parses sentences, so you could write: "The room is in the basement. The room is dark," and Inform will create an object called ' Basement room' with an attribute of being dark. There's a great tutorial on how to create your own game here: http://brasslantern.org/writers/howto/i7tutorial.html

No comments:

Post a Comment