Cave
William Stott
graphics sound
%
Dragonflies hum and hover, and you hear the occasional splash of feeding fish. There is a little path winding between dense trees towards the south.
You can go south (further into the trees).

You can see some long reeds and a large iron key here.
About yourself
You are wearing the traditional clothing of an adventurer.
You examine the reeds
You see a mass of reeds that sway gently in the shallow water.
Looking in the reeds, you find a sack. There is something inside...
You take the sack
Taken.
You examine the key
You see a large, dull iron key that must be for an ancient door.
You open the sack
You see a hessian sack.
Inside is a reed flute...
You examine the flute
The flute is made of elaborately-carved wood.
You go south
The twisting path leads east deeper into the forest and continues north, winding into the trees. There is an old tree-stump next to the path where once a great oak tree must have stood. It seems to be hollow in the centre.
You can go north (along a path to a lake) or east (further into the forest).

You can see a hollow tree stump here.
You examine the stump
You look carefully in the hollow tree stump and. find a box of matches...
You look at the matches
You see a box of matches. It's nearly full.
Inventory
You are carrying:
a large iron key
a brown hessian sack
a reed flute
You take the matches
Taken.
You play flute
OK... squeeeak...
(You don't know how to play it properly - perhaps you need an instruction booklet...)
Go east
The opening to a deep cave leads eastwards into darkness, and the path winds west into the forest.
You can go west (to the forest) or east (into the dark cave).

You can see a small candle stub (unlit) and an ancient silver coin here.
Info
Cave (a short demo using sounds and pictures in Glulx)

a good idea to read both of these first.

I've put comments in the accompanying source code to help explain what's going on. Please feel free to borrow any ideas. All the trickier stuff is taken straight from the examples in the Gull documentation, where it's explained fully.

The pictures and sounds used here have been borrowed from the children's game Dragon Adventure (also in the IF Archive). The game was originally written in BASIC for RISC OS computers, and I wanted to use the same pictures and sound files in the Glulx version. The various picture sizes were chosen to fit the 640 x 480 VGA screen of the original version. At higher screen resolutions the pictures appear smaller, and remain with a fixed offset from the left side of the main window. I haven't found a way round this with Glulx.

effect samples. This gives links to thousands of AU, AIFF and (mostly) WAV samples (I found 106 elephant sounds, for instance), though you need to check the copyright status before using anything.

You'll probably also need an editor for trimming and changing the volume of sound samples. One good one is Audacity, a freeware open source editor for Windows, Linux and the Mac (from

conversion to AIFF. 8-bit mono at 11 or 16KHz seems to be about the best compromise between file length and quality for basic game sound effects.

rival Photoshop. It's available for Windows, Linux and the Mac, and, once you get the hang of it, is useful for both image creation and manipulation.

Like its parent game, this demo has a built-in picture map on screen which shows the places visited (type 'map'). Sound effects can be turned off or on by 'sound off/on'. It's also possible to see briefly inside the dark cave by striking a match, and 'listen' will replay the sound heard by the lake. The demo has no set game ending (in case anyone tries to find one!).

William Stott, June 2004

(Type LOOK or L to see where you are in the game)
You examine the coin
The coin is very old and made of silver. On one side you see the portrait of an ancient king, on the other there is a picture of a galloping horse. It looks quite valuable.
Light candle
OK... you light the candle using the matches...
Go east
The cave floor is moist from condensation, and your flickering candle casts pools of pallid light which sway and dance through the shadows. The cave exit is to the west.

You can see a mouldy old boot here.
You look at it
You see an old, mouldy boot.
Inventory
You are carrying:
a mouldy old boot
an ancient silver coin
a small, burning candle stub (providing light)
a box of matches
a large iron key
a brown hessian sack
a reed flute
Look around
The cave floor is moist from condensation, and your flickering candle casts pools of pallid light which sway and dance through the shadows. The cave exit is to the west.
Dig
What do you want to dig?
You go west
The opening to a deep cave leads eastwards into darkness, and the path winds west into the forest.
You can go west (to the forest) or east (into the dark cave).
Go west
The twisting path leads east deeper into the forest and continues north, winding into the trees. There is an old tree-stump next to the path where once a great oak tree must have stood. It seems to be hollow in the centre.
You can go north (along a path to a lake) or east (further into the forest).

You can see a hollow tree stump (which is empty) here.
Go north
Dragonflies hum and hover, and you hear the occasional splash of feeding fish. There is a little path winding between dense trees towards the south.
You can go south (further into the trees).

You can see some long reeds here.
You take the reeds
They're fixed in place.
You look at the lake
You see a mass of reeds that sway gently in the shallow water.
You see nothing special about the long reeds.
You drop the boot
Dropped.
You look around
Dragonflies hum and hover, and you hear the occasional splash of feeding fish. There is a little path winding between dense trees towards the south.
You can go south (further into the trees).

You can see a mouldy old boot and some long reeds here.
You wear the boot
(first taking the mouldy old boot)
You can't wear that!
You look
Dragonflies hum and hover, and you hear the occasional splash of feeding fish. There is a little path winding between dense trees towards the south.
You can go south (further into the trees).

You can see some long reeds here.
You listen
You hear the occasional splash of fish feeding near the surface.