Tag: Javascript

Creating Interactive Dialogue With Json Part 3: Choices

Jun 4, 2018 4 min.

Now to the good stuff. Redirecting from one piece of dialogue to the next is the bread and butter of most stories in games, and at the end of the day much of what you write will end up will likely be linear in nature; however, what makes games unique in terms of story telling is the ability to add interactivity, to create an experience that changes based on user input.

Creating Interactive Dialogue in Javascript with JSON Part 2: Redirects

Jun 3, 2018 6 min.

In the last section, we got familiar with the problem and laid out what we’re trying to do; we talked about text nodes and how they store the dialogue, and either information about how to transition to the next node, or information about the choices to present the user with. Now, let’s get into writing the code to work on that file. To start we are going to focus on writing the code that iterates over the file, and then we will create the GUI with buttons and text afterwards.