Skip to content

Instantly share code, notes, and snippets.

@robotlolita
Last active December 13, 2015 20: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 robotlolita/4972969 to your computer and use it in GitHub Desktop.
Save robotlolita/4972969 to your computer and use it in GitHub Desktop.
(data "title" "My Story")
(data "author" "Mortchek")
(start-page "foo")
(page "foo"
(text "You are in a place.\n")
(choice (go "bar") "Do a thing!\n")
(choice (go "baz") "Do a different thing!\n")
(choice (give "sword") "Pick up a sword!\n")
(choice (give "shield") "Pick up a shield!\n")
(choice (go "nonexistent") "Take a trip to Limbo!"))
(page "bar"
(text "You did a thing!"))
(page "baz"
(text "You did a different thing!"))
data
title: My Story
author: Mortchek
initial page: foo
page foo
You are in a place.
`go bar: Do a thing!'
`go baz: Do a different thing!'
`give sword: Pick up a sword!'
`give shield: Pick up a shield!'
`go nonexistent: Take a trip to Limbo!'
page bar
You did a thing!
page baz
You did a different thing!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment