An Example with Compasses

People often ask me for examples of Glulx multimedia designs; and since I happened to be working on something with an easily extracted lesson, I’ve taken out the relevant code and made a separate project of it.

The idea is that we have a graphical sidebar along the left side of the screen that functions in place of the game’s status line. At the bottom of that sidebar, next to the command prompt, is a clickable compass rose that displays the available exits in each room, and indicates which of the exits lead to already-visited locations. (This is pretty much a combination of the screen layout from City of Secrets with the color-coded compass from Bronze.)

In a finished game, there would be cool pictures and stuff in the upper part of the status bar, or maybe a clock indicating the game time, or some kind of score-counter, or a whole glistening dashboard of steampunk gears and dials tracking seven simultaneous kinds of progress…

But for this example, we just do the compass rose. Here it is, with green letters for new places and white letters for familiar ones:

Pillaged Village

Anyway, if that all strikes you as interesting, you can try out the gblorb file. Or you can run it for yourself:

  • make a new Inform project
  • copy my source text and paste it into your source panel
  • if you do not have the extensions I use installed, download them from the extensions page and install
  • download my Figures folder
  • unzip the Figures folder and put it in the Materials directory of your project
  • run

(Edited to add: the gblorb file produced will probably not run correctly under Gargoyle or Spatterlight, because they do not use the most up to date version of the Glulxe interpreter. For these purposes, I recommend Zoom on the Mac and Windows Glulxe on Windows.)