<level>
  <playground map="magnets.map">
    <decorations>
      <platform id="1" x="2" y="24" w="10"/>
      <platform id="2" x="28" y="24" w="10" left="yellow" right="yellow"/>

      <magnet orientation="right" x="13" y="12" h="8" distance="12"/>
      <magnet orientation="bottom" x="14" y="11" w="12" distance="10"/>
      <magnet orientation="left" x="26" y="12" h="8" distance="12"/>
    </decorations>
  </playground>

  <startposition platform="1"/>

  <gamecontrol>
  <![CDATA[
	function init() {
		addLandOnPlatformObjective(2);
	}
	
	function onObjectiveReached() {
		gameControl.finish();
	}
  ]]>
  </gamecontrol>
</level>
