Skip to content
forked from inkle/inky

An editor for ink: inkle's narrative scripting language

Notifications You must be signed in to change notification settings

greenheartgames/inky

 
 

Repository files navigation

Inky (alpha)

Inky is a editor for ink, inkle's markup language for writing interactive narrative in games, as used in 80 Days. It's an IDE (integrated development environment), because it gives you a single app that lets you play in the editor as you write, and fix any bugs in your code.

Features

  • Play as you write: The play pane remembers the choices that you made, so when Inky recompiles, it fast-forwards to the last point you were at in the flow.
  • Syntax highlighting
  • As-you-type error highlighting. Inky is constantly compiling, allowing you to fix errors early.
  • Issue browser: Lists errors, warnings and TODOs in your ink, and allows you to jump to the exact line number and file in the source.
  • Jump to definition: Divert targets (like -> theStreet) are hyperlinked can be followed by alt-clicking.
  • Support multi-file projects: - Inky automatically infers your story's structure from the INCLUDE lines, meaning that there's no need for an additional project file. To create a new include file, simply type INCLUDE yourfile.ink where you want to include it.
  • Export to JSON: Although this isn't necessary if you're using the ink-Unity-integration plugin, Inky allows you to export to ink's compiled JSON format, which is especially useful in other ink runtime implementations, such as inkjs, for running ink on the web.
  • File watching: Modern text editors, including Inky, watch for changes to files on disk, so that if you change them it reflects those changes. This is especially helpful if you keep your ink in source control.

Project status

Inky is in alpha, is relatively untested, and is certain to have some bugs. It is also likely to be missing some major features that you might expect in a text editor like Sublime Text.

The informal TODO.md lists some missing features and known issues. If you want to discuss one, or request a new fix or feature, please create a github issue.

To keep up to date with the latest news about ink sign up for the mailing list.

Download

Mac, Windows and Linux

Download the latest release

Implementation details

Inky is built using:

  • Electron, a framework by GitHub to build cross-platform Desktop app using HTML, CSS and JavaScript.
  • Ace, a full-featured code editor built for the web.
  • Photon, for some of the components. However, the dependency could probably be removed, since its only used for small portions of the CSS.

Inky includes a copy of inklecate, the command line ink compiler.

Help develop Inky!

Take a look at the issues page for an issue with a "help wanted" label. We try to provide some basic instructions on how to get started with the development of the feature whenever we add the label.

To build the project:

  • Install node.js if you don't already have it
  • Clone the repo
  • On Mac, double-click the INSTALL_AND_RUN.command script. On Windows, open Powershell, cd into the app directory, and type npm install, then npm start.
  • For subsequent runs, if no npm packages have changed, you can run the RUN.command script on Mac, or type npm start in the shell (on Windows).

Linux

Tested on a fresh Ubuntu 16.04 LTS VM installation (equivalent processes should work for other distributions)

  • Install build tools

sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)

  • Pre-requisites

sudo apt install git

sudo apt install curl

  • Install node and npm

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

sudo apt-get install -y nodejs

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo apt-get update

sudo apt-get install mono-complete

  • Clone the inky repo

git clone https://github.com/inkle/inky.git

  • Test inklecate_win with mono (should output usage info)

mono app/main-process/ink/inklecate_win.exe

  • Install and run inky

./INSTALL_AND_RUN.command

  • For subsequent runs, if no npm packages have changed, launch inky as below (otherwise re-run previous step):

./RUN.command

License

Inky and ink are released under the MIT license. Although we don't require attribution, we'd love to know if you decide to use ink a project! Let us know on Twitter or by email.

The MIT License (MIT)

Copyright (c) 2016 inkle Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Inky is named after a black cat based in Cambridge, UK.

About

An editor for ink: inkle's narrative scripting language

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Other 0.5%