Fluent Cutscenes 1.04
Mostly safe for use, see todo list!
Changes:
- Cutscenes can now wait on a particular key before it will continue. It's the equivilant of pause() unpause() but with a keypress.
- Events that are not affected by the cutscene state begin with "addIndepentant".
Todo:
- Multiple cutscene configurations so it's not all in one definition.
- Possibly, waiting on more than one key, if you'd find that helpful.
- XML DTD.
- A good working example.
Version 1.04.
JAR |
Javadocs |
Source
It's important to note that all of the cutscene methods named below are implemented by the developer, that's how the cutscene files work with their configurations. I could have easily combined the "WAIT_FOR_KEY" code into "SET_TEXT" with an extra parameter.
Example Cutscene file (No DTD yet, again):
Code:
<cutscene>
<events>
<static name="START" params="" at="500"/>
<static name="START_MUSIC" params="RECAP_THEME" at="0"/>
<static name="DISABLE_PLAYER_MOVEMENT" params="" at="0"/>
<static name="SET_TEXT" params="IPO# Hey, Opi. What are you doing?" delimiter="#" at="50"/>
<static name="WAIT_FOR_KEY" params="KEY_ENTER" at="50"/>
<static name="SET_TEXT" params="OPI# IPO!\nI'm just lockin' up some ol' blind people! for fun!" delimiter="#" at="100"/>
<static name="WAIT_FOR_KEY" params="KEY_ENTER" at="100"/>
<static name="SET_TEXT" params="IPO# But that's not fair! Beauty is in the eye of the beholder!" delimiter="#" at="140"/>
<static name="WAIT_FOR_KEY" params="KEY_ENTER" at="140"/>
<static name="SET_TEXT" params="OPI# Hah! Like I care?!\nHow are you going to stop me, eh?" delimiter="#" at="180"/>
<static name="WAIT_FOR_KEY" params="KEY_ENTER" at="180"/>
<static name="SET_TEXT" params="IPO# Uhh, I'll just follow you around and undo all of your doing!" delimiter="#" at="220"/>
<static name="WAIT_FOR_KEY" params="KEY_ENTER" at="220"/>
<static name="SET_TEXT" params="OPI# Just you wait!\nI'll turn your world upside down!" delimiter="#" at="260"/>
<static name="WAIT_FOR_KEY" params="KEY_ENTER" at="260"/>
<static name="ENABLE_PLAYER_MOVEMENT" params="" at="400"/>
<static name="END_MAP" params="" at="500"/>
<!-- <static name="END" params="" at="500"/> -->
</events>
</cutscene>