Skip to content

Instantly share code, notes, and snippets.

@alexwarren
Created February 13, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexwarren/671962a08b9a6e56da29 to your computer and use it in GitHub Desktop.
Save alexwarren/671962a08b9a6e56da29 to your computer and use it in GitHub Desktop.
Squiffy is a tool for creating interactive stories. This is sample is stored in a GitHub Gist.
You write your story in a text file. Each choice is represented by a [[new section]]. You can create links to new sections by surrounding them in double square brackets.
[[new section]]:
In addition to sections, Squiffy has the concept of passages. These are sections of text that don't advance the story. For example, you can click this [passage link], and this [other passage link], but the story won't advance until you click this [[section link]].
[passage link]:
This is the text for the first passage link.
[other passage link]:
This is the text for the second passage link.
[[section link]]:
When a new section appears, any unclicked passage links from the previous section are disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment