|The stupid question is the question not asked|
Adventures in Perl 6by nferraz (Monk)
|on May 07, 2007 at 16:33 UTC||Need Help??|
Since I started using computers, many years ago, I've always been fascinated with the idea of writing my own games.
The problem is that I didn't have a team to help me with fancy images and sounds; so I started writing simple text adventures, and have done so in most languages I have learnt so far.
This meditation is about the writing of an adventure in Perl 6.
According to the Wikipedia, interactive fiction (which is another name for "adventure") describes software simulating environments in which players use text commands to control characters and influence the environment. Works in this form can be understood as literary narratives and as computer games. In common usage, the word refers to text adventures, a type of adventure game with text-based input and output.
A typical adventure session could go like this (an extract from the classic Colossal Cave):
One of the interesting things of writing adventures, is that they require some knowledge of a programming language, but are not that difficult to write (once you know a few basic concepts); and since creating is actually as fun as playing, it's an interesting way to learn a new language.
So I decided I would test my knowledge against the current implementations of Perl 6, and the result was this presentation to the Nordic Perl Workshop (and a couple of days later for the guys of Oslo.pm).
I hope you'll enjoy!