<?xml version="1.0" encoding="UTF-8" ?>

<animation>

	<debug time="0:0" />
	<scenewhenscape name="credits" />

	<background-stars file="point.png">
		<visible-stars type="hide" time="0:0" />
		<visible-stars type="show" time="13:0" />
	</background-stars>

	<sound name="music" category="music" file="music.ogg">
		<actions>
			<action function="play" time="0:00" para1="1" para2="-1" para3="1000" />
			<action function="stop" time="13:00" para1="1000" />
		</actions>
	</sound>

	<sound name="crash" category="effect" file="crash.ogg">
		<actions>
			<action function="play" time="4:50" para1="3" para2="0" />
		</actions>
	</sound>

	<sound name="ovni" category="effect" file="ovni.ogg">
		<actions>
			<action function="play" time="1:00" para1="4" para2="-1" />
			<action function="stop" time="3:30"  para1="500" />
			<action function="play" time="9:00" para1="4" para2="-1" />
			<action function="stop" time="10:00" para1="1000" />
		</actions>
	</sound>

	<sound name="music_end" category="music" file="music_end.ogg">
		<actions>
			<action function="play" time="13:00" para1="5" para2="0" para3="1000" />
		</actions>
	</sound>

	<sound name="people" category="low_music" file="people.ogg">
		<actions>
			<action function="play" time="15:00" para1="3" para2="-1" />
		</actions>
	</sound>

	<element name="map" x="0" y="0" z-index="0">

		<frames>
			<frame-file file="map.jpg" />
		</frames>

		<actions>
			<action function="show" time="0:0" />
			<action function="setfadein" time="0:00" para1="1000" />
			<action function="setfadeout" time="13:00" para1="1000" />
			<action function="hide" time="14:00" />
		</actions>

	</element>

	<element name="hole" align="center" x="300" y="400" z-index="0">

		<frames>
			<frame-file file="hole.png" />
		</frames>

		<actions>
			<action function="show" time="5:48" />
			<action function="setfadeout" time="13:00" para1="1000" />
			<action function="hide" time="14:00" />
		</actions>

	</element>

	<element name="cadiz_m" align="center" x="300" y="390" z-index="1">

		<frames>
			<frame-file file="cadiz_m.png" />
		</frames>

		<actions>
			<action function="show" time="0:0" />
			<action function="setfadein" time="0:00" para1="1000" />
			<action function="addx" time="5:00" para1="2" />
			<action function="addx" time="5:02" para1="-4" />
			<action function="addx" time="5:04" para1="4" />
			<action function="addx" time="5:06" para1="-4" />
			<action function="addx" time="5:08" para1="4" />
			<action function="addx" time="5:10" para1="-4" />
			<action function="addx" time="5:12" para1="4" />
			<action function="addx" time="5:14" para1="-4" />
			<action function="addx" time="5:16" para1="4" />
			<action function="addx" time="5:18" para1="-4" />
			<action function="addx" time="5:20" para1="4" />
			<action function="addx" time="5:22" para1="-4" />
			<action function="addx" time="5:24" para1="4" />
			<action function="addx" time="5:26" para1="-4" />
			<action function="addx" time="5:28" para1="4" />
			<action function="addx" time="5:30" para1="-4" />
			<action function="addx" time="5:32" para1="4" />
			<action function="addx" time="5:34" para1="-4" />
			<action function="addx" time="5:36" para1="4" />
			<action function="addx" time="5:38" para1="-4" />
			<action function="addx" time="5:40" para1="4" />
			<action function="addx" time="5:42" para1="-4" />
			<action function="addx" time="5:44" para1="4" />
			<action function="addx" time="5:46" para1="-4" />
			<action function="setmovementflexibley" time="5:48" para1="370" />
			<action function="setmovementnormaly" time="6:30" para1="270" para2="2000" />
			<action function="setscale" time="6:30" para1="55" para2="38" para3="2000" />
			<action function="setfadeout" time="8:50" para1="200" />
			<action function="hide" time="10:00" />
		</actions>

	</element>

	<element name="ovni" align="center" x="-200" y="210" z-index="2">

		<frames>
			<frame-range-file name="ovni" extension="png" begin="0" end="1" />
		</frames>

		<animations>
			<animation name="stop">
				<frame-animation from="0" />
			</animation>
			<animation name="move" cycles-between-frames="6">
				<frame-animation from="0" to="1" />
			</animation>
		</animations>

		<actions>
			<action function="show" time="1:0" />
			<action function="setforceanimation" time="1:00" para1="move" />
			<action function="setmovementnormalx" time="1:00" para1="300" para2="3000" />
			<action function="setmovementnormaly" time="9:00" para1="-300" para2="2000" />
			<action function="setfadeout" time="13:00" para1="1000" />
			<action function="hide" time="14:00" />
		</actions>

	</element>

	<element name="light" align="center" valing="top" x="300" y="290" z-index="1">

		<frames>
			<frame-file file="light.png" />
		</frames>

		<actions>
			<action function="show" time="4:0" />
			<action function="setfadein" time="4:00" para1="1000" />
			<action function="setfadeout" time="8:30" para1="500" />
			<action function="hide" time="9:00" />
		</actions>

	</element>

	<element name="zerg" align="center" valign="bottom" x="400" y="600" z-index="0">

		<frames>
			<frame-file file="zerg.png" />
		</frames>

		<actions>
			<action function="show" time="13:00" />
			<action function="setfadein" time="13:00" para1="1000" />
		</actions>

	</element>

	<element name="congratulations" align="center" x="400" y="210" z-index="1">

		<frames>
			<frame-text-language name="congratulation_end" font="font-texts" width="700" align="center" />
		</frames>

		<actions>
			<action function="show" time="13:00" />
			<action function="setfadein" time="13:00" para1="1000" />
		</actions>

	</element>

	<element name="congratulations" align="center" x="400" y="10" z-index="0">

		<frames>
			<frame-file file="congratulations_$lang$.png" />
		</frames>

		<actions>
			<action function="show" time="13:00" />
			<action function="setfadein" time="13:00" para1="1000" />
		</actions>

	</element>

</animation>
