Skip to content

clamburger/thy-tampobrain-xvii

Repository files navigation

To celeberate the tenth-ish anniversary of Thy TampoBrain XVII, I'm releasing the source code for all to see. Couldn't find the Gokul Feeding Chamber? Unable to get through the shortcut? Confused by the virus puzzles? Your worries end today!

What is Thy Tampobrain XVII?

Thy TampoBrain XVII is a text adventure, created using the same Flash-based framework used for Thy Dungeonman 3 (from the creators of Homestar Runner). It was released in 2006 and can best be described as "interactive fan fiction", as it focuses on incredibly minor characters from the Homestar Runner universe.

The writing is a little bit cringeworthy, and the few graphics the game has are less than stellar. It's my estimation that no more than 20 people ever played the game. Nonetheless, those people had a lot of fun playing it and I had a lot of fun coding it, so it will forever have a soft spot in my heart.

For more info on Thy TampoBrain XVII, check out the wiki page. Huge thanks to Joshua, without whom there would not be a game at all.

Using the source code

Okay, I lied a bit. Not all of the source code is available, and certainly nothing that you compile into a working game. Unfortunately, the complete source code (particularly the .fla file) contains several assets from the original Thy Dungeonman 3 game, so I've had to omit those for copyright reasons. But don't worry, you're not missing much though: all the good stuff is right here in the ActionScript files.

How things work

When you enter a command, this is how it gets parsed (barring any special cases):

  1. The code for the room you're in checks if it can action your command.
  2. If not, the generic room (Room.as) file checks if it can action your command.
  3. If there's still no luck, control passes to the fallback file (DontUnderstand.as), which usually just tells you that your command was bad.

In all cases, _loc2 in the code refers to the command you entered, and this.put is the text the appears.

A command will often check or set a GameState variable. You can find a list of these (along with descriptions of what they mean) in GameState.as

Synonyms

Each room file, as well as the base Room class, defines a list of synonyms. All synonyms within a set act identically: for example, talk and speak are synonyms, so entering talk brody and speak brody will have the same result.

Locations

Here's a rough map of the game:

Here's how this map matches up to the game files:

About

A fan-created text adventure focused on minor characters from the Stinkoman 20X6 universe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published