<level>
  <playground map="crates.map">
    <decorations>
      <platform id="1" x="19" y="23" w="9" left="yellow" right="yellow"/>
      <platform x="9" y="7" w="9"/>
      <platform x="28" y="12" w="9"/>
      <platform x="3" y="18" w="9"/>
      <platform x="1" y="22" w="5"/>

      <crate type="triple" x="11" y="7"/>
      <crate type="triple" x="15" y="7"/>

      <crate type="double" x="30" y="12"/>
      <crate type="double" x="34" y="12"/>

      <crate type="back" x="5" y="18"/>
      <crate type="back" x="9" y="18"/>

      <crate type="laser" x="3" y="22"/>
    </decorations>
  </playground>

  <startposition platform="1"/>

  <gamecontrol>
  <![CDATA[
	var state = 0;
	
	function onTakeOff(platform) {
		if (state == 0) {
			addLandOnPlatformObjective(1);
			state = 1;
		}
	}
  	
  	function onObjectiveReached() {
  		gameControl.finish();
  	}
  ]]>
  </gamecontrol>
</level>
