The setting of the game is you are a blind hippie and you use your special metal detector (which is able to give directional information) to find treasure on a beach.
Here is a walk through of the game with some annotations.
Some code screen shots
Set object locations to sound object locations
Detects when the player has gone to far and has gotten lost
Move listener back to beginning if lost
Listener-> object distance calculations
End of game code - Check that all treasures are found