Programmed in Python 3:
Growing up I had a special affection for games where you could type commands into a parser because unlike a mouse interface you could attempt anything you could possibly think of and play with language itself. In puzzle games this made it so you had to actually think things through and no clickfest could save you. One could try to cheat by typing “use x with y” for every combo of items in your inventory but designers were usually more clever than this.
Frederik Pohl’s Gateway, one of my favorite games of all time, had limited graphics but understood the fun and capricious nature of the text interface better than any other. The designers actually made an effort to think of all the dumb stuff you might type in. Here’s a couple of screen shots I just made:
What’s more, Gateway was a very well-made game when you actually took it seriously. I loved that kind of depth. For years I wanted to make something similar. So I did as a way to learn some python a couple years ago. I’m sure my code is terrible by any professional standard but it seems to work. There are still bugs of course.
I tried to add some of the whimsical flavor I loved so much back in the day from games like Zork and Gateway. Come to think of it, death sequences were definitely inspired by reading too many Choose Your Own Adventure books as a kid. I have monsters, puzzles, and an ending. The player character can take 3 hits before dying. There is an optional item that will improve your chances at the end but solving that puzzle requires thinking a bit immaturely. If a monster seems overwhelmingly difficult, you probably haven’t found the right item/solved the puzzle yet. If you have a weapon but use the word “hit” you will still be attacking with your hands. For those who have never played these kinds of games:
‘i’ =”look at inventory”
‘n, s, e, w’ = “go x” direction
‘l’ = “look at room”
Finally got around to putting it on github:
DoAnything is the executable and it should run in python 3.
6 replies on “My Parser Computer Game”
If you liked Gateway you might like “Neo Scavenger”!
Damn giggler also “kill narrator”
The giggler/git is very hard to beat if you haven’t figured out its weakness.
I’ve made quite a few TADS games by now. Those little contests do help focus in a way.
print(“You must have a vivid imagination.”)
I have found a bug, it crashes if I write “look at down”.