Over a year ago, my interwebfriend secretGeek created a thing. I created a fork, and pimped it into this (and copied some of his blog lines too). I urge you to go and try it out before you read on. Unfortunately you’ll need to be on a desktop computer, not a mobile phone.

Go there now.

In case you don’t have a desktop computer anymore (woah, futuristic!), or have already tried it out, I’ll give some spoilers and discussion now.

Spoilers

Actually, I’ll give some space before the spoilers. Scroll now for spoilers.

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

↓ spoilers ahead ↓

Here is secretGeek’s blog-entry. When playing the game I had loads of fun. Keeping a map on graph paper, just to make sure the map is deterministic and doesn’t use some random numbers. After some more playing, I started looking at the code and wanted to tinker with it. So I forked it. I had some wild and interesting ideas.

But somehow, nothing happened.

I guess I was overthinking it. A year later, I remembered one time at work while being bored, I created the so called mini-webventure. I didn’t think too much back then, so why do it now?

So I just started. After running around in the forest (in the game, that is), I got tired of entering parenthesis. And with properties around in all browsers nowadays, there’s no need for it. So instead of typing n(), you now can enter n to go north.

An other thing: in a JavaScript game, I don’t consider inspecting and modifying variables cheating. So I prevented that with an iife and some help of strict mode (to eliminate global variables).

Multiple lines are now returned after entering a command, so they are displayed in the same font and color. And deaths are a bit more dramatic now. You should really try it, if you haven’t already…

After dying too often, implementing load/save was next. First I just saved the game state, but then I realized this was another way to cheat, so now only the entered commands are stored. Then I realized, a demo-mode is very easy to implement. Couldn’t resist it, but it’s hidden somewhere in the game.

I didn’t want to change the map or story. Just wanted to share the fun I had, both playing and pimping the game.