Overview of Jaiffa

What it is

Jaiffa (Javascript Interactive Fiction/Adventures) is a toy library for the creation of text adventures that can be embedded in a Web page. It was created as a programming exercise and idea testbed. Jaiffa is small, fast, and easy to use, study or modify.

Jaiffa provides a DSL (Domain Specific Language) for the creation of text adventures, but the user interface needs to be implemented separately. The demo adventure comes with example code.

What it is not

Jaiffa is not meant for real-world usage. If you want to write serious interactive fiction, I urge you to consider one of the mainstream authoring systems. Jaiffa is kept deliberately simplistic; any game made with it would be far from meeting the expectations of a modern player. Also, due to the syntax of Javascript, writing long messages is difficult.

What makes it special

Jaiffa borrows what I consider to be some good simplifying ideas from MU*s.

Some additions of my own:

Compatibility

Jaiffa works in Firefox 3.5, Opera 10, Arora 0.10 (Webkit-based), and partially in Konqueror 4 and Nokia Browser.

Limitations

Right now the parser is restricted to two-word commands. It's plenty enough to implement a complete, if primitive, adventure. But I'd like a future version to be smarter.

No save, load or undo yet. To restart, just reload the Web page.

No light sources either; for now, just flip the dark flag on rooms manually.

The library messages should be gathered in one place for easy translation.

To the game