Skip to content
No description, website, or topics provided.
JavaScript CSS HTML
Branch: master
Clone or download
blurymind Merge pull request #97 from blurymind/master
add callback for embedding in other html game engine IDE, also fix webapp file saving and loading
Latest commit 40a4214 Jul 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app get dictionary from server Jul 29, 2019
.gitignore
CONTRIBUTING.md Add CONTRIBUTING.md Feb 17, 2016
LICENSE.md license update Feb 17, 2016
README.md Linux instructions Jun 28, 2017
Yarn.png Added Yarn icon to package Aug 10, 2017
package.json Added Yarn icon to package Aug 10, 2017

README.md

Yarn

Dialogue editor created for "Night in the Woods" (and other projects) by @NoelFB and @infinite_ammo with contributions from @seiyria and @beeglebug. It is heavily inspired by and based on the amazing Twine software: http://twinery.org/

Screenshot

Builds

Win64: http://infiniteammo.com/Yarn/Yarn-2016-08-15-win.zip

MacOS: http://infiniteammo.com/Yarn/Yarn-2016-08-15-mac.zip

Examples

Games built with Unity and Yarn.

Lost Constellation: http://finji.itch.io/lost-constellation

Screenshot

Knights and Bikes: https://www.kickstarter.com/projects/foamsword/knights-and-bikes

Screenshot

Sunflower (Demo): http://infiniteammo.com/Sunflower

Screenshot

Far From Noise by George Batchelor (@georgebatch): http://www.georgebatchelor.com/#!far-from-noise/c1ceg

Screenshot

YarnTest: http://infiniteammo.com/YarnTest/

Test drive your Yarn files here ^

How to Connect Nodes

Node connections work similar to Twine.

Screenshot

Shortcut Options

Shortcut options are a new method of creating dialogue branches that does not require creating new nodes.

Screenshot

How to Import Twine Files

One way to import Twine files into Yarn is to export a "Twee" file from Twine. (txt format) Open this txt file in Yarn as you would any other file.

Note: This method of importing will not preserve node locations, just each node's title, body and tags.

How to Run Your Dialogue in Unity

You can find basic Yarn parsing and playback example code here:

https://github.com/InfiniteAmmoInc/yarn-test

You can find a more advanced Yarn interpreter here:

https://github.com/thesecretlab/YarnSpinner

How to Run the Yarn Source as an App

Download http://nwjs.io/ for your platform and extract the contents.

Win64: Download the latest nwjs for Windows 64bit. Extract the content to wherever you like. Drag the yarn folder into nw.exe and it should run yarn! (if not ensure that the yarn folder has package.json in it). Alternatively run nw.exe and navigate to C:/path_to_yarn/Yarn/app/index.html

MacOS: Place source code in a new folder named "app.nw" inside the extracted nwjs.app's "Contents/Resources/" folder. (to explore an app's folder structure, right click and select "Show Package Contents")

Linux: Download latest nwjs for linux. Extract the content to wherver you like. In that folder make a new folder named "package.nw". Clone yarn into the package.nw folder so that readme, licence and most imporatantly package.json are in the package.nw folder. Now open terminal, navigate to the folder where you extracted nwjs and run the "nw" executable.

Yarn Icon

Yarn logo/icon created by @Mr_Alistair.

Icon

You can’t perform that action at this time.