Christopher Wellons
mosquitopsu@gmail.com
Public GPG Key
Post Index - see a list of all of the entries.
I am a computer engineer working at the Johns Hopkins University Applied Physics Laboratory. I love computers and free software.
Most of the topics you will find here are about hobby computing and programming with free software (and a few exceptions).
E-mail me: mosquitopsu@gmail.com
Projects:
- Brainfuck Compiler
- PNG Archiver
- BINI Tools
-
Parallel Mandelbrot Generator
Archives:
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
June 2008
July 2008
August 2008
September 2008
December 2008
January 2009
I wrote this thing back in September 2005 when I had to learn MATLAB for work. This writeup was done about year later.
Download the code (GPL licensed) at download/walk.tar.gz (33.72KB). There are both Perl an MATLAB versions.
This was a text-adventure engine I wrote when I was starting to learn MATLAB programming, which means the MATLAB code here is pretty horrendous. It may or may not work in GNU octave, I didn't bother checking. That's because I later wrote a Perl version that does the same thing (when I was still starting with learning Perl, so not much better). Included is a sample "world" to explore (in English and pig latin!). The format for the "world" is a really simple one, probably missing a lot of features of a real text adventure scripting language. Have fun!
This is what it looks like,
Welcome to Walk. Just type in plain English into the 'Action:' line what you want to do. Type 'inv' to display the inventory. Type 'clc' to clear the screen Type 'look' or 'ls' to get the current description of the room. Type 'save' to quicksave the session. Type 'load' to restore the quicksave session. Type 'doc' or 'help' to see this message again. Type 'quit' to quit. Action: look You appear to be in a small bedroom. There are no windows. Light is provided by a small ceiling lamp. There is a brown wooden door, a small bed with no sheets, a small box which is laying on the bed. Action: _
Don't stop here! This isn't everything. Check out the archives (on the left) for more posts. Or just have a look at the index.