Ink for the Web
Learning Ink
- Part 1: Installing Inky and Common Terms
- Part 2: Choices and Knots
- Part 3: Sticky and Advanced Choices
- Part 4: Includes and Stitches
- Part 5: Alternatives, Sequences, Cycles, and Shuffles
- Part 6: Gather Points and Labelled Options
- Part 7: Global, Temporary, and Constant Variables
- Part 8: Knot Parameters and Functions
- Part 9: Tunnels and Threads
- Part 10: Lists
Ink is a scripting language for creating interactive fiction like choose-you-own-adventures and other vast, branching stories.
Using the Inky editor and Ink’s tagging system, projects can be created for play in a web browser through adding images, using meta instructions, and customizing layout and styles using CSS.
Meta Instructions
Along with understanding code commands, the tagging system in Inky also allows for more meta instructions like author, theme, clear, and restart.
Author
The author tag allows for adding an author to the project. Once added, the “author” area will appear under the title in the web version.
Theme
By default, the “theme” (CSS style rules) is set to “white”. As with other tags, including the keyword “theme:” and a new choice will change it. Version 0.10 introduced a new theme option: dark.
Note: As of this writing, Ink/Inky only supports two themes: white and dark.
Clear
While other instructions change code properties, CLEAR works only in the web-export version. It “clears” all other instructions and starts at the top of the screen with the next instructions.
Restart
Like CLEAR, RESTART also only works in the web-exported version of Ink. Instead of removing things, however, RESTART does as its name implies: it restarts the project.