<?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="Push Wires" el:subtitle="" el:id="20080708ral196"/>
      <el:version el:score="1" el:release="1" el:revision="$Revision: 129 $" el:status="released"/>
      <el:author  el:name="Ronald Lamprecht" el:email="ral@users.berlios.de"/>
      <el:copyright>Copyright © 2008 Ronald Lamprecht</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:55" el:difficult="1:39"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = true

ti[" "] = {"fl_dark", friction=5.5, adhesion=1.7}
ti["~"] = {"fl_abyss"}
ti["x"] = {"st_oxyd", flavor="d"}
ti["#"] = {"st_redfiber"} .. ti["~"]
ti["wood"] = {"st_box_hay", "wood%%"}
ti["@"] = {"#ac_marble"}

resolver = res.autotile(ti, {"1","5","wood"})

w, h = wo(resolver, " ", {
"~~~~~~~~~~~~~~~~~~~~",
"~~~~~~~~~~~~~~~~~~~~",
"~~~~~~~~~~~~~~~~~~~~",
"~~~~       ~~~~~~~~~",
"~~~~   2   ~~~#~~~~~",
"~~~~       ~~x~~~~~~",
"~~~@ 5 1 3 ~#~~~#~~~",
"~~~~       ~~~~x~~~~",
"~~~~   4   ~~~#~~~~~",
"~~~~       ~~~~~~~~~",
"~~~~~~~~~~~~~~~~~~~~",
"~~~~~~~~~~~~~~~~~~~~",
"~~~~~~~~~~~~~~~~~~~~"
})

if wo["IsDifficult"] then
  wo:add({"ot_wire", anchor1="wood%1", anchor2="wood%2"})
  wo:add({"ot_wire", anchor1="wood%1", anchor2="wood%3"})
  wo:add({"ot_wire", anchor1="wood%1", anchor2="wood%4"})
  wo:add({"ot_wire", anchor1="wood%1", anchor2="wood%5"})
else
  wo:add({"ot_wire", anchor1="wood%2", anchor2="wood%5"})
  wo:add({"ot_wire", anchor1="wood%3", anchor2="wood%4"})
end

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