<!DOCTYPE level_data ><document caption="Wonderland?" author="Thomas Friedrichsmeier" >
 <completion deliveries="4" extra_life="no" />
 <image background="wonderland_back.jpg" foreground="wonderland_fore.png" />
 <platforms>
  <data y="92" passengers="yes" has_fuel="no" x1="13" passenger_base_x="30" x2="178" label="Top left"/>
  <data y="157" passengers="yes" has_fuel="no" x1="453" passenger_base_x="600" x2="619" label="Top right"/>
  <data y="476" passengers="yes" has_fuel="no" x1="315" passenger_base_x="325" x2="407" label="Bottom left"/>
  <data y="476" passengers="yes" has_fuel="no" x1="539" passenger_base_x="549" x2="623" label="Bottom right"/>
  <data y="316" passengers="no" has_fuel="yes" fuel_price="0.1000" fuel_step="3" x1="226" x2="402" label="center"/>
 </platforms>

 <hot_areas>
  <area x1="558" x2="640" y1="0" y2="68" enter_event="unlock"/>
  <area x1="0" x2="78" y1="320" y2="340" touch_event="toggle_left_door" untouch_event="toggle_left_door"/>
  <area x1="0" x2="78" y1="354" y2="375" touch_event="toggle_police" untouch_event="toggle_police"/>
  <area x1="552" x2="640" y1="340" y2="375" touch_event="toggle_right_door" untouch_event="toggle_right_door"/>
 </hot_areas>

 <states>
  <state ident="left_door_open" initial="off"/>
  <state ident="right_door_open" initial="off"/>
  <state ident="unlocked" initial="off"/>
  <state ident="police" initial="off"/>
  <state ident="true" initial="on"/>
  <state ident="never" initial="off"/>
 </states>

 <events>
  <event ident="unlock">
   <change state="unlocked" to="toggle"/>
  </event>
  <event ident="toggle_left_door">
   <condition>
    <requires state="unlocked" to_be="on"/>
   </condition>
   <change state="left_door_open" to="toggle"/>
  </event>
  <event ident="toggle_right_door">
   <change state="right_door_open" to="toggle"/>
  </event>
  <event ident="toggle_police">
   <change state="police" to="toggle"/>
  </event>
 </events>

 <objects>
  <object frames="2" file_pattern="objects/police%1.png" anim_frame_period="500"
	class="harmful" z="90" looping ="true">

   <path x="680" y="365" time="50" accel="abrupt">
    <stop>
     <condition>
      <requires state="unlocked" to_be="off"/>
     </condition>
    </stop>
   </path>

   <path x="680" y="365" time="1500" accel="custom" vx= "-133" vy="0" ax="0" ay="0">
    <jump target="5">
     <condition>
      <requires state="police" to_be="on"/>
     </condition>
    </jump>
   </path>

   <path x="480" y="365" time="3000" accel="custom" vx="-133" ax="44" vy="0" ay="0">
    <stop>
     <condition>
      <requires state="police" to_be="off"/>
     </condition>
    </stop>
   </path>

   <path x="280" y="365" time="3000" accel="custom" vx="0" ax="-80" vy="0" ay="0">
    <jump target="7">
     <condition>
      <requires state="true" to_be="on"/>
     </condition>
    </jump>
   </path>

   <path x="480" y="365" time="1500" accel="custom" vx="-133" vy="0" ax="0" ay="0"/>

   <path x="280" y="365" time="3000" accel="custom" vx="-133" vy="0" ax="0" ay="0"/>

   <path x="-100" y="365" time="4000" accel="custom" vx="0" vy="0" ax="0" ay="0"/>

  </object>

  <object frames="1" file_pattern="objects/door.png" class="harmful" z="1" looping ="true">
   <path x="84" y="343" time="500" accel="abrupt"/>
   <path x="-8" y="343" time="50" accel="abrupt">
    <stop>
     <condition>
      <requires state="left_door_open" to_be="off"/>
     </condition>
    </stop>
   </path>
   <path x="-8" y="343" time="500" accel="abrupt"/>
   <path x="84" y="343" time="50" accel="abrupt">
    <stop>
     <condition>
      <requires state="left_door_open" to_be="on"/>
     </condition>
    </stop>
   </path>
  </object>

  <object frames="1" file_pattern="objects/door.png" class="harmful" z="1" looping ="true">
   <path x="458" y="343" time="500" accel="abrupt"/>
   <path x="550" y="343" time="50" accel="abrupt">
    <stop>
     <condition>
      <requires state="right_door_open" to_be="off"/>
     </condition>
    </stop>
   </path>
   <path x="550" y="343" time="500" accel="abrupt"/>
   <path x="458" y="343" time="50" accel="abrupt">
    <stop>
     <condition>
      <requires state="right_door_open" to_be="on"/>
     </condition>
    </stop>
   </path>
  </object>
  
 		<object text="Wonderland?" font="helvetica" max_width="500" max_height="80" r="255" g="100" b="100" 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.005000" horiz_gravity="0.0" />
 <tips min="15.00" max="35.00" />
 <fare base="5.40" step="0.050000" />
 <initial_position x="240" y="185" />
</document>
