<?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="Microwire" el:subtitle="" el:id="20080717ral427"/>
      <el:version el:score="1" el:release="1" el:revision="$Revision: 128 $" 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="false" el:single="true" el:network="false"/>
      <el:score el:easy="-" el:difficult="1:29"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = false
wo["ProvideExtralifes"] = false
wo["ShowMoves"] = true

ti[" "] = {"fl_abyss"}
ti["-"] = {"fl_platinum", friction=7, adhesion=1.8}
ti["."] = {"st_polarswitch"}
ti["1"] = {"st_mirror", "mirror1", orientation=EAST, movable=true}
ti["2"] = {"st_mirror", "mirror2", orientation=EAST, movable=true}
ti["3"] = {"st_mirror", "mirror3", orientation=EAST, movable=true}
ti["x"] = {"it_trigger", "trigger#", target="check"}
ti["W"] = ti[" "] .. {"st_laser_e", "laser#"}
ti["E"] = ti[" "] .. {"st_laser_w", "laser#"}
ti["O"] = {"st_oxyd_d"}
ti["@"] = ti["x"] .. {"#ac_marble"}

w, h = wo(ti, "-", {
"                    ",
"        OOO         ",
"                    ",
"                    ",
"       .....        ",
"  W    .-1x.     E  ",
"  W    .2@-.     E  ",
"  W    .x-3.     E  ",
"       .....        ",
"                    ",
"                    ",
"        OOO         ",
"                    "
})

wo:add({"ot_wire", anchor1="mirror1", anchor2="mirror2"})
wo:add({"ot_wire", anchor1="mirror2", anchor2="mirror3"})
wo:shuffleOxyd()

function check()
    for trigger in no["trigger#*"] do
        if not (st(trigger):is("st_mirror")) then
            no["laser#*"]:off()
            return
        end
    end
    no["laser#*"]:on()
end
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
