Introduction
inkgd is an implementation of the Ink runtime, in pure GDScript.
If you are not familiar with Ink, it’s a good idea to take a quick look at two documents from the original documentation:
Writing with Ink – which describes how to write ink stories;
Running your Ink – which describes how to integrate the ink runtime in a C# environment.
The GDScript API is 100% compatible with the original C# API, except for a couple of minor divergences accomodating the differences between the two languages. For more information, see Differences between the GDScript and C# APIs.
Note
inkgd provides no GUI, only text. It’s up to you to decide how to present the content to your players.
Playing a story typically involves repeating the following three steps until the story reaches its end:
calling
InkPlayer.continue_story()
until a branch is found;presenting an array of choices to the player;
reporting back the selected choice through
InkPlayer.choose_choice_index()
.
Click on the Next button to discover how to install inkgd!
Note
Nicholas O’Brien created step-by-step video tutorial showing how to create a visual-novel-like game using Godot and Ink. Feel free to check it out!