Building the Dialogue System for Neon Atelier
As we have planned narrative elements for Project Neon Atelier, we need a way to present to the conversation between in-game characters. Our idea is to implement a dialogue system similar to that of visual visual, with clicking to proceed through the dialogue line. Each dialogue line is defined as a DialogueLine instance, each consisting of the speaker's name, the speaker's position reference, and also callbacks for when displaying a line and finish reading a line. An dialogue path system is be added, so that we can group together some of the related dialogues, and allow the player to go back to a selection menu to load the dialogue sections one at a time. However, the path is not meant for dynamic storyline, as our narrative is not meant to be driven by player decision. Each point of path divergence is represented by DialogueOption object, which consist of the description for selection, a list of tuple with text and custom callbacks for each selection option, a...