Install twine. You can download it from twinery.org
It will automatically make a folder in Documents. In documents/twine make a "build" folder
Inside the media folder is two mp3 files, I made for you :)
This is what we're going to make:
While Sugarcube is not the default, it has the best audio documentation!
First we have to make "StoryInit"
This will be a loading screen, where we cache our audio. Cacheing the audio, takes it from our harddrive to our RAM. Meaning we can call on it "instantly" from now on.
Here is what to type in
You'll notice that everything you put in [[square brackets]] will create a link to a page called that.
next, we'll do our command "audio" references what sort of command it will be "alarm" references
Here, we have learnt a new sort of page setup. We want the text to say "again", but go to [[start]] page. So we have the arrow!
Here you will see that we had to STOP the alarm sound, and PLAY the snore sound :)
Click "publish to file"
You can now open that HTML doc, and play your text based game in most browsers!