angelaz1 / 15-466-f22-final

0 stars 0 forks source link

Base dialogue file parser #22

Closed angelaz1 closed 1 year ago

angelaz1 commented 1 year ago

Resolves #14 and resolves #5

Creates a basic parser to allow for dialogue tree creation from Twine 2

Creating dialogue trees

Currently using Twine 2 with the twison extension to author dialogue trees and export them into a json format. This is then read by the code during runtime for displaying dialogue.

Text Format

Each passage within Twine is split into three regions:

An example passage is provided below:

{"character": "Narration"}
Your mind flashes back to the night before. How you decided to spend just another hour making dinner. How you stayed up till 5am watching League. And now you're showing up to class without a prototype to share.
[[Next->Story 4]]