Skip to content

Instantly share code, notes, and snippets.

@xdl
Created October 13, 2020 11:56
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 xdl/8619936e9cc4e6464febaaa75e4d937a to your computer and use it in GitHub Desktop.
Save xdl/8619936e9cc4e6464febaaa75e4d937a to your computer and use it in GitHub Desktop.
Twee file publishable on Itch (compiling with Tweego)
:: Stylesheet [stylesheet]
body {
overflow-y: scroll;
}
:: Script [script]
var audio = document.createElement('audio');
audio.src = 'background.ogg';
audio.loop = true;
audio.autoplay = true;
audio.play();
:: StoryData
{
"ifid": "5ED609D9-B6B3-4D6D-AF06-CC021648758C",
"format": "Harlowe",
"format-version": "3.1.0",
"start": "Start"
}
:: StoryTitle
Wynn
:: Start
Legend tells of a treasure called Wynn, hidden in the darkest depths of the Staralfur caves.
They say that it can grant the bearer whatever their heart's desire. However, the location of these caves are only known to a chosen few; it is said that the major wars throughout ancient history were fought over possession of knowledge of the cave's location.
Legend tells the prophecy that one day, a hero who possesses the both the guile to obtain that knowledge and the heart to delve its depths will retrieve Wynn, eradicate all plagues from earth and bring peace to mankind once again.
<img src="title-screen.png" width="500" height="500" alt="Title Screen">
Adventurer! Are you ready to rise to the challenge of retrieving this grand treasure?
[[Yes!|What's your name?]]
:: What's your name?
(set: $name to (prompt: "Great! Remind me: what is your name again?", ""))
So... your name is (print: $name) eh?
[[yes|Intro]]
[[no|What's your name?]]
:: Intro
zzz
zzz
...
zzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment