Quixe with Cheap GlkOte

This is a demonstration of Quixe running with no user interface at all. It is operating as a pure Javascript function.

To see this running, open your browser console and type:

CheapGlkOte.start_game()

The function will return a string containing the game's opening text. (Adventure, if you arrived at this demo in the usual way.)

To play a turn, type something like:

CheapGlkOte.game_turn('east')

This function will return the response to the command. You can keep entering commands in this way.

This is the simplest possible use of the GlkOte API. It discards all formatting, as well as the status line. It can only handle normal line input. (So don't type HELP in Adventure, bringing up the keystroke-based menu! It won't work. SAVE and RESTORE won't work either.) Oh, and the input prompt is stuck onto the end of every output, and the player's command is stuck onto the beginning.

To use this in a real game you'll have to do more work. But this demonstrates the basics.

The Javascript library which accomplishes this can be found here: cheap-glkote.js. It's just 150 lines.