UpdateThe text boxes are now controlled via XML. It's a simple system with a linear series of events.
The Text event shows a text box with a series of paragraphs. The X and Y position aren't used yet, but it's the on-screen position of the character, for positioning the speech bubble's pointy bit.
The Delay event waits for the specified time.
Backdrops aren't done yet, but I'll probably just use a Scene event to switch the image that's being displayed, for now. Audio will be added later on.
<Cutscene>
<!--<Scene backdrop="Morning_Trixie.png">-->
<Delay>0.5</Delay>
<Text speaker="Trixie" x="184" y="76">
<P>Morning!</P>
<P>Gorgeous day for a bit of treasure hunting.</P>
</Text>
<Text speaker="Troy" x="160" y="180">
<P>You might want to get dressed first.</P>
</Text>
<Delay>0.5</Delay>
<Text speaker="Trixie" x="184" y="76">
<P>Yeah, yeah.</P>
</Text>
</Cutscene>
Speakers are defined in another XML file, which currently just determines the colour in which their name appears.
<Speakers>
<Speaker name="Trixie">
<Colour R="247" G="141" B="226"/>
<BorderColour R="162" G="10" B="131"/>
</Speaker>
<Speaker name="Troy">
<Colour R="236" G="187" B="134"/>
<BorderColour R="119" G="97" B="73"/>
</Speaker>
</Speakers>