
<sequence>
  <scene id="opening1">

    <resources>
      <bg id="background" priority="1">
        <bitmap file="sequences/intro/scene01.jpg"/>
      </bg>
	  <sounds>
	    <atmo id="storm" loopfile="sound>storm/waves00.wav" minpitch="0.9" maxpitch="1.1" minpause="1.0" maxpause="2.5">
			<sample file="sound>storm/thunder00.wav"/>
			<sample file="sound>storm/thunder01.wav"/>
		</atmo>
	  </sounds>
      <dialogbox/>
    </resources>

    <script>
		<stopallsound/>
		<mapcellmarker x="7" y="8"/>
		<fadeinsound id="storm" duration="1.5"/>
    	<setbrightness value="0" duration="0"/>
	    <setbrightness value="1" duration="1.5"/>

		<setvariable key="hidemap" value = "true_quick"/>

		<movebg id="background" pos="0,64" duration="3" soft="true"/>
		<waitforall>
			<bgmovementfinished id="background"/>
		</waitforall>

		<rumbleeffect type="1" periods="0"/>


		<starttimer/>
		<waitforall>
			<timerelapsed time="1.5"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="neutral">
		Far out on the open sea, a small ship fights the grim forces of nature. But the struggle seems hopeless, mighty waves toss the sailboat back and forth like a nutshell. With a thunderous crack, the helm breaks... the ship steers through the night out of control. Only a miracle could avert the imminent disaster.
	  	</dialogtextsequence>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>

	</script>
  </scene>

  <scene id="opening2">

    <resources>
      <bg id="background" priority="1">
        <bitmap file="sequences/intro/scene02.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<dialogtextsequence characterdelay="0.02" orientation="right">
		"The ship is out of control ... I am lost."
		</dialogtextsequence>

      <hidedialogbox/>

	  <rumbleeffect type="1" periods="0"/>


      <!-- fade out -->
	  <fadeoutsound id="storm" duration="1.0"/>
      <setbrightness value="0" duration="1.0"/>
      <waitforall>
        <brightness/>
      </waitforall>

	  <rumbleeffect type="0"/>
	  <stopallsound/>
	  <unloadsoundresources/>
    </script>
  </scene>

  <scene id="opening3">

    <resources>
      <bg id="background" priority="1">
        <bitmap file="sequences/intro/scene03.jpg"/>
      </bg>
	  <sounds>
	    <atmo id="water" minpitch="0.9" maxpitch="1.1" minpause="1.0" maxpause="2.5">
			<sample file="sound>water/splash00.wav"/>
			<sample file="sound>water/splash01.wav"/>
			<sample file="sound>water/splash02.wav"/>
			<sample file="sound>water/splash03.wav"/>
		</atmo>
	  </sounds>
      <dialogbox/>
    </resources>

    <script>

		<!-- fade in -->
		<fadeinsound id="water" duration="1.0"/>
		<setbrightness value="1" duration="1.0"/>

		<movebg id="background" pos="64,0" duration="3" soft="true"/>
		<waitforall>
			<bgmovementfinished id="background"/>
		</waitforall>

		<starttimer/>
		<waitforall>
			<timerelapsed time="1.5"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="neutral">
		The next morning, when the clouds of the night storm have disappeared behind the horizon and the first warming rays of the sun trickle out life again, the heavily damaged ship lies on the beach of an unknown island.
		</dialogtextsequence>
		<hidedialogbox/>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>

    </script>
  </scene>


  <scene id="opening4">

    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/intro/scene04.jpg"/>
      </bg>
       <bg id="woman" priority="1">
        <bitmap file="sequences/jungle/woman3.png"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>
		<movebg id="woman" pos="255,0" duration="0.5" soft="false"/> <dialogtextsequence characterdelay="0.02" orientation="right">
			"What happened....where am I? Ugh....my head hurts.....I remember....this strange storm... but how did I get here? I have to find help. I hope there are people living on this island...who don&apos;t see me as a sweet dessert."
		</dialogtextsequence>

		<hidedialogbox/>

		<!-- fade out -->
		<fadeoutsound id="water" duration="1.0"/>
		<setbrightness value="0" duration="1.0"/>
		<waitforall>
			<brightness/>
		</waitforall>

		<stopallsound/>
		<unloadsoundresources/>
    </script>
  </scene>


  <scene id="opening5">

    <resources>
      <bg id="background" priority="1">
        <bitmap file="sequences/intro/scene05.jpg"/>
      </bg>
	  <sounds>
	    <atmo id="jungle" loopfile="sound>jungle/jungleloop.wav" minpitch="0.9" maxpitch="1.1" minpause="1.0" maxpause="2.5">
			<sample file="sound>jungle/jbird00.wav"/>
			<sample file="sound>jungle/jbird01.wav"/>
			<sample file="sound>jungle/jbird02.wav"/>
			<sample file="sound>jungle/jbird03.wav"/>
			<sample file="sound>jungle/jbird04.wav"/>
		</atmo>
	  </sounds>
      <dialogbox/>
    </resources>

    <script>

		<!-- fade in -->
		<fadeinsound id="jungle" duration="1.0"/>
		<setbrightness value="1" duration="1.0"/>
		<setvariable key="hidemap" value = "false"/>

		<waitforall>
			<brightness/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="neutral">
			Valerie packs her gear to find rescue, her thoughts circle around the question, of whether fate has offered her a second chance. The dense jungle seems like an impenetrable wall. She walks up and down the beach until she finds something that looks like a path. She brushes aside her thoughts, and follows the path which leads deeper into the jungle.
		</dialogtextsequence>
    	<hidedialogbox/>

		<!-- fade out -->
		<setbrightness value="0" duration="1.0"/>
		<fadeoutsound id="jungle" duration="1.0"/>
		<waitforall>
			<brightness/>
		</waitforall>

    </script>
  </scene>

</sequence>
