Your SlideShare is downloading. ×
  • Like
Twine Workshop
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Twine Workshop

  • 4,161 views
Published

Reference slides from the Twine Workshop for CMP310.

Reference slides from the Twine Workshop for CMP310.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
4,161
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Twine A great way to tell interactive stories
  • 2. Download http://gimcrackd.com/etc/src/
  • 3. Choose Your Own Adventure++ with macros!
  • 4. Passages ● A section of writing ● A route Twine passages are both
  • 5. Ye Olde Passage Your feet are swollen. Continue walking (turn to page 20) Pass out (turn to page 42)
  • 6. Hyperlinks Your feet are swollen. ● Continue walking ● Pass out
  • 7. Pass Out You pass out, animals come by and lick you.
  • 8. Continue Walking You keep walking, your feet begin to bleed.
  • 9. In Twine, we link like this Open [[door]] ^--- goes to passage “door” Open [[The Door|door]] ^--- goes to passage “door” displays The Door
  • 10. Formatting italics bold underline //text// ‘‘text’’ __text__ bullets *one *two numbered #one #two
  • 11. Special Passages StoryTitle StorySubtitle StoryAuthor These don’t link to anything, they just float there in space when you’re in Twine.
  • 12. Story Formats ● Sugarcane - One passage at a time, hides the rest ● Jonah - Timeline of passages
  • 13. Forcing Choices <<choice “Try to escape”>> <<choice “Attack”>> <<choice “Crap your pants”>> When you do this, it will disable all the other choices in that passage.
  • 14. Reusing Text <<display “Inn”>> <<display “Drink”>> Shows the passage Inn and Drink
  • 15. Actions You see 2 fair maidens <<display “maidens actions”>> In passage maidens actions… <<actions “the blonde” “the brunette”>>
  • 16. Variables $nameOfVariable <<set $myVariable = “yes”>> <<set $ammunition = 100>> <<set $ammunition = $ammunition + 1>>
  • 17. Conditions <<if $myVariable eq “yes”>> You have my variable! <<else>> You don’t have my variable <<endif>>
  • 18. Conditions <<if $ammunition lt 1>> No more ammo! <<else>> You fire a shot <<set $ammunition = $ammunition - 1>> <<endif>>
  • 19. Conditions eq neq gt gte lt lte Equal Not Equal Greater Than Greater Than or Equal To Less Than Less Than or Equal To
  • 20. Multiple Conditions and or not <<if ($myVariable eq “Zanzibar”) and ($ammunition gt 1>> <<if ($myVariable eq “Yellow”) or ($ammunition lt 100>>
  • 21. Silently Every time a macro runs, it’ll use a line. You can remove those lines by encapsulating macros with <<silently>> <<endsilently>>
  • 22. Images [img[filename.png]] [img[http://www.yahoo.com/image.png]]
  • 23. Publishing ● Build your story, save it as index.html ● Upload index.html and any images into a folder onto a web server
  • 24. I Can Haz Custom Theme? Sure, use CSS http://gimcrackd.com/etc/doc/#customizing, appearance