<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<el:level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://enigma-game.org/schema/level/1 level.xsd" xmlns:el="http://enigma-game.org/schema/level/1">
  <el:protected>
    <el:info el:type="level">
      <el:identity el:title="Puppet" el:subtitle="" el:id="pulley06"/>
      <el:version el:score="2" el:release="3" el:revision="14" el:status="released"/>
      <el:author  el:name="Mark Pulley" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2007 Mark Pulley</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:score el:easy="0:45" el:difficult="2:29"/>
    </el:info>
    <el:luamain><![CDATA[
wo["SlopeStrength"] = 10

if wo["IsDifficult"] then
    ti[" "] = {"fl_slope_ts"}
    ti["^"] = {"fl_slope_tn"}
    ti["f"] = {"ac_horse", name="footL"} .. ti({"fl_slope_tn"})
else
    ti[" "] = {"fl_metal_7"}
    ti["^"] = {"fl_metal_7"}
    ti["f"] = {"ac_horse", name="footL"} .. ti({"fl_metal_7"})
end
ti["b"] = {"fl_bluegreen"}
ti["g"] = {"st_portal"}
ti["0"] = {"st_oxyd_b"}
ti["Y"] = {"st_rawglass", name="support1"}
ti["Z"] = {"st_rawglass", name="support2"}
ti["O"] = {"#ac_horse", name="head"}
ti["S"] = {"#ac_horse", name="shoulder"}
ti["e"] = {"#ac_horse", name="elbowL"}
ti["L"] = {"#ac_horse", name="elbowR"}
ti["h"] = {"#ac_horse", name="handL"}
ti["N"] = {"#ac_horse", name="handR"}
ti["P"] = {"#ac_horse", name="hip"}
ti["k"] = {"#ac_horse", name="kneeL"}
ti["K"] = {"#ac_horse", name="kneeR"}
ti["R"] = {"#ac_horse", name="footR"}
ti["W"] = {"st_brick"}
ti["door"] = {"st_door", name="Door%%", flavor="a"} .. ti["b"]
ti["trigger"] = {"it_trigger", target="Door%%"} .. ti["b"]
ti["2"] = {"st_portal"} .. ti({"it_trigger", target="Door%2"}) .. ti["b"]
ti["@"] = {"#ac_marble_black"}

wo(res.autotile(ti, {"1", "9", "trigger"}, {"A","I","door"}), " ", {
    "W0ggggg2YOZggggggg0W",
    "Wbg N L^ S  e h  IbW",
    "Wbg   1     8    gbW",
    "Wbg@  ^     ^    gbW",
    "Wbg        9     gbW",
    "WEg   K4 P3^k    gDW",
    "WBg    ^  7      gGW",
    "Wbg       ^ 5    gbW",
    "Wbg   R     f    gbW",
    "Wbg       6      gbW",
    "WbWWWWWWWWWWWWWWWWbW",
    "WHbbbbbbbFAbbbbbbbCW",
    "W0WWWWWWWWWWWWWWWW0W"})

wo:add({"ot_rubberband", anchor1="head", anchor2="support1", length=1, strength=20, max=1.05, min=0.95})
wo:add({"ot_rubberband", anchor1="head", anchor2="support2", length=1, strength=20, max=1.05, min=0.95})
wo:add({"ot_rubberband", anchor1="head", anchor2="shoulder", length=1, strength=20, max=1.05, min=0.95})
wo:add({"ot_rubberband", anchor1="shoulder", anchor2="elbowL", length=3, strength=20, max=3.05, min=2.95})
wo:add({"ot_rubberband", anchor1="shoulder", anchor2="elbowR", length=3, strength=20, max=3.05, min=2.95})
wo:add({"ot_rubberband", anchor1="elbowL", anchor2="handL", length=2, strength=20, max=2.05, min=1.95})
wo:add({"ot_rubberband", anchor1="elbowR", anchor2="handR", length=2, strength=20, max=2.05, min=1.95})
wo:add({"ot_rubberband", anchor1="shoulder", anchor2="hip", length=4, strength=20, max=4.05, min=3.95})
wo:add({"ot_rubberband", anchor1="hip", anchor2="kneeL", length=3, strength=20, max=3.05, min=2.95})
wo:add({"ot_rubberband", anchor1="hip", anchor2="kneeR", length=3, strength=20, max=3.05, min=2.95})
wo:add({"ot_rubberband", anchor1="kneeR", anchor2="footR", length=3, strength=20, max=3.05, min=2.95})
wo:add({"ot_rubberband", anchor1="kneeL", anchor2="footL", length=3, strength=20, max=3.05, min=2.95})

wo:shuffleOxyd()
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
