Develop Twine games without Twine, using Tweego.
Adapted from this project.
Check the Tweego docs for info on Tweego.
- Make sure you have Node.js 6+ installed.
- Run
npm install
in the project directory.
- Create all your Twine files (in Twee notation) in the
src
directory, along with any HTML, CSS, Javascript, image or font files you need. - Run
npm run build
to generate your game page in thedist
directory. - Run
npm run watch
to monitor changes to yoursrc
folder and automatically rebuild your game when you make changes.
- If you put JS files into the
js
directory instead ofsrc
, they will be compiled using Babel. - If you put SCSS files into the
scss
directory, they will be compiled to CSS using Sass.