Coder Social home page Coder Social logo

pupsan / sugarcube-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tmedwards/sugarcube-2

0.0 0.0 0.0 2.57 MB

SugarCube is a free (gratis and libre) story format for Twine/Twee.

Home Page: https://www.motoslave.net/sugarcube/2/

License: BSD 2-Clause "Simplified" License

JavaScript 95.06% Python 0.30% CSS 3.96% Smarty 0.68%

sugarcube-2's Introduction

SugarCube v2

SugarCube is a free (gratis and libre) story format for Twine/Twee.

Downloads and documentation may be found at SugarCube website.

If you believe that you've found a bug in SugarCube or simply wish to make a suggestion, you may do so by creating a new issue. SugarCube also has a work log that may be of interest.

INSTALLATION

You may either download one of the precompiled packages from SugarCube's website or build SugarCube from source—see BUILDING FROM SOURCE below.

BUILDING FROM SOURCE

If you want to build SugarCube from scratch, rather than grabbing one of the pre-built packages off of its website, then these instructions are for you.

SugarCube uses Node.js (currently ≥v16) as the core of its build system, so you'll need to install it if you don't already have it. Additionally, to retrieve SugarCube's source code from this repository, you'll need to install Git.

  1. Download and install the Node.js JavaScript runtime (https://nodejs.org/)
  2. Download and install the Git source control management tool (https://git-scm.com/)

Once all the tooling has been installed and set up, the next step is to fetch the SugarCube source code. Open a shell to wherever you wish to store the code and run the following command to clone the repository:

git clone https://github.com/tmedwards/sugarcube-2.git

Next, change to the directory that the previous command created, which is your local clone of the repository:

cd sugarcube-2

There are two major branches within the repository:

  • master: The stable release branch
  • develop: The main development branch

Be sure to switch to the branch you wish to work on by issuing the appropriate git checkout command.

Once you're on the correct branch, fetch SugarCube's development dependencies:

npm install

You should now have SugarCube and all dependencies downloaded, so you may build it by running the following command:

node build.js

Assuming that completed with no errors, the story format, in Twine 1 and Twine 2 flavors, should be output to the dist directory. Congratulations!

NOTE: SugarCube's development dependencies are occasionally updated. If you receive errors when attempting to build, then you probably need to update your cached dependencies. You may do this via the npm update command or, in extreme cases, by running npm uninstall and npm install in order.

TIP: If you'd like additional options when building—e.g., debug builds, limiting the build to a particular version of Twine, etc.—then you may request help from build.js by specifying the help (-h, --help) option. For example:

node build.js -h

sugarcube-2's People

Contributors

tmedwards avatar chapelr avatar marc-cornette avatar grausicht avatar karimechehbouni avatar mrawi avatar theumnavigator avatar cyrusfirheir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.