<!DOCTYPE level_data ><document caption="Revenge of the pharao?" author="Thomas Friedrichsmeier" >
	<completion deliveries="4" extra_life="yes" />
	<image background="pyramids_back.jpg" foreground="pyramids_fore.png" />
	<platforms>
		<data y="207" passengers="yes" has_fuel="no" x1="170" passenger_base_x="180" x2="304" label="Top left" />
		<data y="228" passengers="yes" has_fuel="no" x1="424" passenger_base_x="490" x2="571"  label="Entry" />
		<data y="364" passengers="yes" has_fuel="no" x1="257" passenger_base_x="326" x2="407"  label="Center" />
		<data y="0" passengers="yes" has_fuel="no" x1="0" passenger_base_x="80" x2="109" label="Hidden chamber" ident="h_plat" take_off_event="hide_hidden" />
		<data y="433" passengers="yes" passenger_base_x="150" label="Bottom left" has_fuel="yes" fuel_price="0.1000" fuel_step="3" x1="143" x2="218" />
	</platforms>
	<teleporters>
		<data x="461" y="273" width="20" height="20" destination="2" fare="0" factor_x="0" factor_y="0" frames="1" file_pattern="objects/blind.png" arrive_event="hide_hidden" leave_event="show_hidden" />
		<data x="35" y="35" width="20" height="20" destination="1" fare="0" factor_x="0" factor_y="0" frames="1" file_pattern="objects/blind.png" />
	</teleporters>

	<hot_areas>
		<area x1="220" x2="240" y1="170" y2="185" touch_event="toggle_block"/>
		<area x1="310" x2="320" y1="380" y2="390" touch_event="toggle_stairs"/>
		<area x1="170" x2="230" y1="380" y2="430" touch_event="trigger_block"/>
		<area x1="550" x2="560" y1="255" y2="265" touch_event="show_hidden"/>
		<area x1="520" x2="630" y1="240" y2="370" untouch_event="hide_hidden"/>
	</hot_areas>

	<events>
		<event ident="toggle_block">
			<change state="block_loose" to="toggle"/>
			<sound file="sounds/click.wav" />
		</event>

		<event ident="toggle_stairs">
			<change state="stairs_visible" to="toggle"/>
			<sound file="sounds/clank.wav" />
		</event>

		<event ident="trigger_block">
			<condition>
				<requires state="block_loose" to_be="on"/>
			</condition>
			<change state="block_falling" to="on"/>
		</event>

		<event ident="stop_block">
			<change state="block_falling" to="off"/>
		</event>

		<event ident="show_hidden">
			<change state="hidden_platform" to="on"/>
		</event>

		<event ident="hide_hidden">
			<change state="hidden_platform" to="off"/>
		</event>
	</events>

	<states>
		<state ident="stairs_visible" initial="on" />
		<state ident="block_loose" initial="on" />
		<state ident="block_falling" initial="off" />
		<state ident="hidden_platform" initial="off" />
		<state ident="never" initial="off" />
	</states>

	<objects>
		<object class="background" z="90" looping="true" frames="1" file_pattern="objects/cover.png" anim_frame_period="5000">
			<path x="614" y="328" time="50" accel="abrupt" />
		</object>

		<object class="harmful" z="90" looping="true" frames="1" file_pattern="objects/stairs.png" anim_frame_period="5000">
			<path x="406" y="361" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="stairs_visible" to_be="on"/>
					</condition>
				</stop>
			</path>
			<path x="406" y="361" time="50" accel="abrupt" visible="false">
				<stop>
					<condition>
						<requires state="stairs_visible" to_be="off"/>
					</condition>
				</stop>
			</path>
		</object>

		<object class="platform" ident="h_plat" z="10" looping="true" frames="1" file_pattern="objects/platform.png" anim_frame_period="5000">
			<path x="631" y="350" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="hidden_platform" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="631" y="350" time="1000" accel="custom" ay="0" ax="200" vx="-200" vy="0">
				<stop>
					<condition>
						<requires state="hidden_platform" to_be="on"/>
					</condition>
				</stop>
			</path>
			<path x="531" y="350" time="1000" accel="linear"/>
		</object>

		<object class="harmful" z="90" looping="true" frames="1" file_pattern="objects/block.png" anim_frame_period="5000">
			<path x="159" y="230" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="block_falling" to_be="off"/>
					</condition>
				</stop>
				<trigger event="stop_block">
					<condition>
						<requires state="block_falling" to_be="on"/>
					</condition>
				</trigger>
			</path>
			<path x="159" y="230" time="500" accel="custom" ay="1184" ax="0" vx="0" vy="0"/>
			<path x="159" y="378" time="2000" accel="abrupt"/>
		</object>

		<object class="background" z="1" looping="true">
			<path x="220" y="170" time="50" accel="abrupt" frames="1" file_pattern="objects/switch_down.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="block_loose" to_be="on"/>
					</condition>
				</stop>
			</path>
			<path x="220" y="170" time="50" accel="abrupt" frames="1" file_pattern="objects/switch_up.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="block_loose" to_be="off"/>
					</condition>
				</stop>
			</path>
		</object>

		<object text="Revenge of the pharao?" font="helvetica" max_width="500" max_height="80" r="200" g="30" b="200" anim_frame_period="10000"
					class="background" z="90" looping ="true">
			<path x="320" y="180" time="5000" accel="custom" vx="0" vy="0" ax="0" ay="-100"/>
			<path x="320" y="-70" time="20000" accel="custom" vx="0" vy="0" ax="0" ay="0" visible="false">
				<stop><condition><requires state="never" to_be="off"/></condition></stop>
			</path>
		</object>
	</objects>

	<gravity base_gravity="0.005" horiz_gravity="0.0" />
	<tips min="10.00" max="30.00" />
	<fare base="5.40" step="0.050000" />
	<initial_position x="600" y="80" />
</document>
