Letter for Mimi 2 – wip #11

Dialogue now is able to contain events such as demonstrated in the video above: flash, shake and changing of tiles. The events can be easily extended, however they are hard coded into the game-engine. Multiple events can be added to a single dialogue line, as you can see in the XML representation of the conversation:

<line id="1">
    <text>#*Flash*# test</text>
    <events>
        <event>flash</event>
    </events>
</line>
<line id="2">
    <text>#*Shake*# test</text>
    <events>
        <event>quake</event>
    </events>
</line>
<line id="3">
    <text>#*changeTile*# test</text>
    <events>
        <event x="22" y="22" tile="5">changeTile</event>
    </events>
</line>

Leave a comment

Your email address will not be published. Required fields are marked *