Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 834 Bytes

README.markdown

File metadata and controls

16 lines (9 loc) · 834 Bytes

README : tweecode/twee

To run twee, you will need a copy of this code, a local Python installation, and a .tw file. You can get this fork from github using, for example, the ZIP button. Python should come pre-installed on a Mac; a Windows installer is available at python.org.

Once you have all those, open the Terminal or a command prompt, change to the twee directory, and type something like:

./twee my-input-file.tw > my-output-file.html

To compile to Sugarcane instead of Jonah, use the -t flag:

./twee -t sugarcane my-input-file.tw > my-other-output-file.html

To export the story data to JSON (which could be used by third-party programs like Twine for AS3), simply use

./twee -t json my-input-file.tw > my-story-output.json