<!DOCTYPE level_data >
<document caption="Side by Side" author="Thomas Friedrichsmeier (background by Stefan Bruens)" >
	<completion deliveries="3" extra_life="no" />
	<image background="zero_g_back.jpg" foreground="side_by_side_fore.png" />
	<platforms>
		<data y="83" passengers="no" has_fuel="no" x1="65" x2="136" label="Switch left" land_event="do_grav_left"/>
		<data y="440" passengers="no" has_fuel="no" x1="502" x2="573" label="Switch right" land_event="do_grav_right"/>
		<data y="108" passengers="no" has_fuel="yes" fuel_price="0.0800" fuel_step="3" x1="202" x2="299" label="Fuel left"/>
		<data y="108" passengers="no" has_fuel="yes" fuel_price="0.1500" fuel_step="5" x1="319" x2="422" label="Fuel right"/>
		<data y="186" passengers="yes" has_fuel="no" x1="202" passenger_base_x="295" x2="305"  label="Top left"/>
		<data y="186" passengers="yes" has_fuel="no" x1="313" passenger_base_x="323" x2="422"  label="Top right"/>
		<data y="280" passengers="yes" has_fuel="no" x1="202" passenger_base_x="295" x2="305"  label="Center left"/>
		<data y="280" passengers="yes" has_fuel="no" x1="313" passenger_base_x="323" x2="422"  label="Center right"/>
		<data y="369" passengers="yes" has_fuel="no" x1="202" passenger_base_x="295" x2="305"  label="Bottom left"/>
		<data y="369" passengers="yes" has_fuel="no" x1="313" passenger_base_x="323" x2="422"  label="Bottom right"/>
	</platforms>

      <states>
		<state ident="grav_left" initial="off"/>
		<state ident="grav_right" initial="off"/>
		<state ident="true" initial="on"/>
		<state ident="grav_active" initial="off"/>
		<state ident="never" initial="off" />
	</states>

	<events>
		<event ident="do_grav_left">
			<change state="grav_right" to="off"/>
			<change state="grav_active" to="on"/>
		</event>
		<event ident="do_grav_right">
			<change state="grav_left" to="off"/>
			<change state="grav_active" to="on"/>
		</event>
		<event ident="grav_left_on">
			<change state="grav_left" to="on"/>
		</event>
		<event ident="grav_right_on">
			<change state="grav_right" to="on"/>
		</event>
	</events>

	<objects>

		<object class="background" z="1" looping="true">
			<path x="583" y="396" time="50" accel="abrupt" frames="1" file_pattern="objects/yellow_square.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="grav_active" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="583" y="396" time="2950" accel="abrupt" frames="1" file_pattern="objects/yellow_square.png" anim_frame_period="5000"/>
			<path x="583" y="396" time="50" accel="abrupt" frames="1" file_pattern="objects/red_square.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="grav_left" to_be="on"/>
					</condition>
				</stop>
			</path>
			<path x="583" y="396" time="3000" accel="abrupt" frames="1" file_pattern="objects/yellow_square.png" anim_frame_period="5000">
				<trigger event="grav_right_on">
					<condition>
						<requires state="true" to_be="on"/>
					</condition>
				</trigger>
			</path>
			<path x="583" y="396" time="50" accel="abrupt" frames="1" file_pattern="objects/green_square.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="grav_right" to_be="on"/>
					</condition>
				</stop>
			</path>
		</object>

		<object class="background" z="1" looping="true">
			<path x="41" y="40" time="50" accel="abrupt" frames="1" file_pattern="objects/yellow_square.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="grav_active" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="41" y="40" time="2950" accel="abrupt" frames="1" file_pattern="objects/yellow_square.png" anim_frame_period="5000">
				<trigger event="grav_left_on">
					<condition>
						<requires state="true" to_be="on"/>
					</condition>
				</trigger>
			</path>
			<path x="41" y="40" time="50" accel="abrupt" frames="1" file_pattern="objects/green_square.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="grav_left" to_be="on"/>
					</condition>
				</stop>
			</path>
			<path x="41" y="40" time="3000" accel="abrupt" frames="1" file_pattern="objects/yellow_square.png" anim_frame_period="5000"/>
			<path x="41" y="40" time="50" accel="abrupt" frames="1" file_pattern="objects/red_square.png" anim_frame_period="5000">
				<stop>
					<condition>
						<requires state="grav_right" to_be="on"/>
					</condition>
				</stop>
			</path>
		</object>

		<object class="harmful" z="80" looping="true" frames="1" file_pattern="objects/stamp_right.png" anim_frame_period="5000">
			<path x="422" y="109" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_right" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="422" y="109" time="2000" accel="custom" vx="0" vy="0" ax="50" ay="0"/>
			<path x="522" y="109" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_left" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="522" y="109" time="2000" accel="custom" vx="0" vy="0" ax="-50" ay="0"/>
		</object>

		<object class="harmful" z="80" looping="true" frames="1" file_pattern="objects/stamp_left.png" anim_frame_period="5000">
			<path x="180" y="109" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_left" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="180" y="109" time="2000" accel="custom" vx="0" vy="0" ax="-50" ay="0"/>
			<path x="80" y="109" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_right" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="80" y="109" time="2000" accel="custom" vx="0" vy="0" ax="50" ay="0"/>
		</object>

		<object class="harmful" z="81" looping="true" frames="1" file_pattern="objects/small_vert_cyl.png" anim_frame_period="5000">
			<path x="84" y="224" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_left" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="84" y="224" time="2000" accel="custom" vx="0" vy="0" ax="-50" ay="0"/>
			<path x="-16" y="224" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_right" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="-16" y="224" time="2000" accel="custom" vx="0" vy="0" ax="50" ay="0"/>
		</object>

		<object class="harmful" z="82" looping="true" frames="1" file_pattern="objects/big_vert_cyl.png" anim_frame_period="5000">
			<path x="-41" y="219" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_left" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="-41" y="219" time="2000" accel="custom" vx="0" vy="0" ax="-25" ay="0"/>
			<path x="-91" y="219" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_right" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="-91" y="219" time="2000" accel="custom" vx="0" vy="0" ax="25" ay="0"/>
		</object>

		<object class="harmful" z="79" looping="true" frames="1" file_pattern="objects/small_vert_cyl.png" anim_frame_period="5000">
			<path x="438" y="224" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_right" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="438" y="224" time="2000" accel="custom" vx="0" vy="0" ax="50" ay="0"/>
			<path x="538" y="224" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_left" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="538" y="224" time="2000" accel="custom" vx="0" vy="0" ax="-50" ay="0"/>
		</object>

		<object class="harmful" z="80" looping="true" frames="1" file_pattern="objects/big_vert_cyl.png" anim_frame_period="5000">
			<path x="531" y="219" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_right" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="531" y="219" time="2000" accel="custom" vx="0" vy="0" ax="25" ay="0"/>
			<path x="581" y="219" time="50" accel="abrupt">
				<stop>
					<condition>
						<requires state="grav_left" to_be="off"/>
					</condition>
				</stop>
			</path>
			<path x="581" y="219" time="2000" accel="custom" vx="0" vy="0" ax="-25" ay="0"/>
		</object>

		<object text="Side by Side" font="helvetica" max_width="500" max_height="80" r="150" g="150" b="150" 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.0" horiz_gravity="0.0">
		<data x="2640" y="2480" gravity="0.025" potential="0" active_state="grav_right"/>
		<data x="-2000" y="-2000" gravity="0.025" potential="0" active_state="grav_left"/>
		<data x="2640" y="-2000" gravity="0.025" potential="0" active_state="grav_right"/>
		<data x="-2000" y="2480" gravity="0.025" potential="0" active_state="grav_left"/>
	</gravity>

	<tips min="15.00" max="35.00" />
	<fare base="10.40" step="0.050000" />
	<initial_position x="580" y="83" />
</document>



