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

<animation>

	<debug time="0:0" />

	<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>

	<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" />
		</actions>

	</element>

	<element name="hole" align="center" x="380" y="370" z-index="0">

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

		<actions>
			<action function="show" time="5:48" />
		</actions>

	</element>

	<element name="malaga_m" align="center" x="380" y="290" z-index="1">

		<frames>
			<frame-file file="malaga_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="260" />
			<action function="setmovementnormaly" time="6:30" para1="170" para2="2000" />
			<action function="setscale" time="6:30" para1="53" para2="48" para3="2000" />
			<action function="setfadeout" time="8:50" para1="200" />
			<action function="hide" time="10:00" />
		</actions>

	</element>

	<element name="ovni" align="center" x="900" y="140" 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="setflip" time="1:0" para1="1" />
			<action function="setforceanimation" time="1:00" para1="move" />
			<action function="setmovementnormalx" time="1:00" para1="380" para2="3000" />
			<action function="setmovementnormaly" time="9:00" para1="-300" para2="2000" />
			<action function="hide" time="50:00" />
		</actions>

	</element>

	<element name="light" align="center" valing="top" x="380" y="220" 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" />
			<action function="gotoscene" time="13:00" para1="nextscene" para2="2000" />
		</actions>

	</element>

</animation>
