Dear Monks,
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):
You are standing at the end of a road before a small brick building. Around you is a forest. A small stream flows out of the building and down a gully. > SOUTH You are in a valley in the forest beside a stream tumbling along a rocky bed. > SOUTH At your feet all the water of the stream splashes into a 2-inch slit in the rock. Downstream the streambed is bare rock. > DRINK WATER You have taken a drink from the stream. The water tastes strongly of minerals, but is not unpleasant. It is extremely cold.
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adventures in Perl 6
by dewey (Pilgrim) on May 07, 2007 at 17:46 UTC | |
by nferraz (Monk) on May 08, 2007 at 17:30 UTC | |
|
Re: Adventures in Perl 6
by ady (Deacon) on May 07, 2007 at 18:26 UTC | |
by nferraz (Monk) on May 08, 2007 at 17:18 UTC | |
|
Re: Adventures in Perl 6
by Jenda (Abbot) on May 07, 2007 at 21:57 UTC | |
|
Re: Adventures in Perl 6
by chexmix (Hermit) on May 07, 2007 at 21:06 UTC | |
by blazar (Canon) on May 07, 2007 at 21:19 UTC | |
by chexmix (Hermit) on May 08, 2007 at 13:38 UTC | |
|
Re: Adventures in Perl 6
by gaal (Parson) on May 09, 2007 at 18:40 UTC | |
by nferraz (Monk) on May 10, 2007 at 16:21 UTC | |
by gaal (Parson) on May 10, 2007 at 16:39 UTC |