
<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">
        Lontano nel mare aperto, una piccola imbarcazione lotta contro le oscure forze della natura. Ma la battaglia sembra essere senza speranza; grandi onde scuotono la barca da ogni lato come un guscio di noce. Con un fragoroso rumore, il timone si spezza… la barca vaga nella notte senza controllo. Solo un miracolo può evitare l&apos;imminente disastro.
	  	</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">
		"La barca è fuori controllo... Sono perduta".
		</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">
		Il mattino seguente, quando le nuvole della tempesta notturna si sono ormai dissipate all&apos;orizzonte e i primi caldi raggi del sole fanno rinascere la vita, la barca in pessime condizioni si trova arenata sulla spiaggia di un&apos;isola sconosciuta.
		</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">
			"Cosa è successo…dove sono? Oh…che mal di testa…ricordo…questa strana tempesta…ma come sono arrivata qui? Devo cercare aiuto. Speriamo che qualcuno viva nell’isola… che certo non sembra il posto più accogliente del mondo."
		</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 si mette in marcia per cercare aiuto, i suoi pensieri sono concentrati a capire se il destino le ha davvero offerto una seconda possibilità. La fitta giungla appare come una parete impenetrabile. Cammina su e giù lungo la spiaggia fino a quando trova qualcosa che assomiglia a un sentiero. Scaccia i dubbi e i pensieri e segue il sentiero che si addentra nella giungla.
		</dialogtextsequence>
    	<hidedialogbox/>

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

    </script>
  </scene>

</sequence>
