This library allows you to create dynamic, multi-branched stories in a simple way. Written in javascript, it can then be used in any web project, NodeJS or Electron.
The point of entry to the library is StoryEngine
class. It exposes severals methods to init, load, save and play a story.
TODO
Simply run npm run build
and copy the lib
directory. The library is ES5 compatible and provide Typescript mapping.
Simply run npm test
and see the result in the terminal.
This library supports severals file formats, but YML is the simple one to write easily and quickly a story.
First, you have to make a new directory. All the files of the story will have to be deposited in this directory. You can create as many files and subdirectories as you want. To see an example of a story tree, look at the example
directory.
TODO
TODO
TODO
TODO
TODO
TODO
In the root directory project, you can see a visualizer
directory. This is a simple web page, powered by AlchemyJS to see eavery sequences of your story and their relashionship. It's a great tool for visually checking your story.
- Visualize relations
- Mark dialog as "skipped after first display"
- Display inventory