<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 id="10" type="small" x="11" y="7"/>
      <crate id="11" type="small" x="13" y="7"/>
      <crate id="12" type="small" x="15" y="7"/>

      <crate id="13" type="medium" x="30" y="12"/>
      <crate id="14" type="small" x="34" y="12"/>

      <crate id="15" type="big" x="7" y="18"/>

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

  <startposition platform="1"/>

  <gamecontrol>
  <![CDATA[
	var noteShown = 0;

	function init() {
		for (var id = 10; id <= 15; id++) {
			addBringCrateToPlatformObjective(id, 1);
		}
  	}

	function onCratePickup(crate) {
		if (noteShown == 0) {
			gameControl.setPopUpText("note");
			noteShown = 1;
		}
	}
	
  	function onObjectiveReached() {
  		gameControl.finish();
  	}
  ]]>
  </gamecontrol>
</level>
