Parchment for Noobs

Another way to do this is to create a trivial I7 game:

The Kitchen is a room.

Release along with an interpreter.

Set the project to zcode/glulx and hit Release. You can then copy out the generated web site (starting with play.html) and replace the game file.

Replacing the game file is a slight nuisance since you have to base64-encode the game file. I use this Python script:

https://github.com/erkyrath/quixe/blob/master/tools/game2js.py

Like this:

game2js.py --giload MyGame.gblorb  > test.materials/Release/interpreter/Test.gblorb.js

…or, for Z-code,

game2js.py --giload MyGame.zblorb  > test.materials/Release/interpreter/Test.zblorb.js

This overwrites the encoded game file, and the release directory will now play MyGame.

(The game you write in doesn’t actually have to be blorbed up. A bare .ulx or .z8 file will work equally well.)

2 Likes