<?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="Hang-dogging?" el:subtitle="" el:id="devnull16"/>
      <el:version el:score="1" el:release="1" el:revision="8" el:status="released"/>
      <el:author  el:name="/dev/null" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2008 dev0</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="1:11" el:difficult="2:22"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = true

function grateKiller()
    for x = 3, 6 do
        wo[{ x, 6}] ={"st_nil"}
    end
end

ti[" "] = {"fl_abyss"}
ti["."] = ti[" "] .. {"st_grate_cross"}
ti["T"] = {"it_trigger", target = "grateKiller"}
if wo["IsDifficult"] then
    ti[":"] = {"fl_bridge_gc", state = CLOSED}
    ti["X"] = ti[" "]
    ti["Y"] = ti[":"] .. {"st_box_rock"}
    ti["!"] = ti[":"]
    ti["t"] = ti[":"] ..ti["T"]
    ti["r"] = ti["t"] .. {"st_rotator", counterclock = true}
    ti["R"] = ti["t"] .. {"st_rotator", counterclock = false}
    ti["g"] = ti[" "] .. {"st_grate_cross"}
    ti["@"] = ti[":"] .. {"#ac_marble_black", owner = YIN}
else
    ti[":"] = {"fl_dark"}
    ti["X"] = ti["."]
    ti["Y"] = ti[":"] .. {"st_grate_cross"}
    ti["!"] = ti[":"] .. {"it_pin"}
    ti["t"] = ti[":"] ..ti["T"]
    ti["r"] = ti["t"]
    ti["R"] = ti["t"]
    ti["g"] = ti[":"] .. {"st_grate_cross"}
    ti["@"] = ti[":"] .. {"#ac_marble_white", owner = YIN, controllers = CTRL_YIN}
end
ti["G"] = ti[":"] .. {"st_grate_cross"}
ti["x"] = ti[" "] .. {"st_grate_cross"}
ti["1"] = ti[" "] .. {"st_swap", name = "swapper01"}
ti["2"] = ti[" "] .. {"st_swap", name = "swapper02"}
ti["3"] = ti[" "] .. {"st_swap", name = "swapper03"}
ti["b"] = ti[":"] .. {"st_boulder_n"}
ti["B"] = ti[":"] .. {"st_boulder_s"}
ti["o"] = {"st_oxyd", oxydcolor = OXYD_PURPLE}

width, height = wo(ti, " ",
-- 0         1         2
-- 012345678901234567890
{ "                    ", --  0
  "  Y...X.....2       ", --  1
  "  G..o.......       ", --  2
  " xG... ......       ", --  3
  " Gr... ...... ::::: ", --  4
  " bg... ...... ::::: ", --  5
  "   .......... ::1@! ", --  6
  " Bg... ...... ::::: ", --  7
  " GR... ...... ::::: ", --  8
  " xG... ......       ", --  9
  "  G..o.......       ", -- 10
  "  Y...X.....3       ", -- 11
  "                    "  -- 12
-- 0         1         2
-- 012345678901234567890
})

wo:add({"ot_wire", anchor1="swapper01", anchor2="swapper02"})
wo:add({"ot_wire", anchor1="swapper01", anchor2="swapper03"})
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
