<?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="Mission Impossible" el:subtitle="" el:id="martin14"/>
      <el:version el:score="2" el:release="2" el:revision="2" el:status="released"/>
      <el:author el:name="Martin Hawlisch" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2003 Martin Hawlisch</el:copyright>
      <el:license el:type="GPL version 2" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
ti[" "] = {"fl_gray"}
ti["#"] = {"st_rawglass"}
ti["^"] = {"st_oneway", orientation=NORTH}
ti[">"] = {"st_oneway", orientation=EAST}
ti["<"] = {"st_oneway", orientation=WEST}
ti["M"] = {"st_mirror", orientation=SLASH}
ti["m"] = {"st_mirror", orientation=SLASH, transparent=true}
ti["N"] = {"st_mirror", orientation=BACKSLASH}
ti["0"] = {"st_laser", name="laser0", orientation=EAST, state=OFF}
ti["1"] = {"st_laser", name="laser1", orientation=EAST, state=ON}
ti["2"] = {"st_laser", name="laser2", orientation=EAST, state=ON}
ti["T"] = {"st_timer", name="timer", target="laser", _t=0, _d=cond(wo["IsDifficult"], 1, -1)}
ti["Q"] = {"st_laserswitch"}--oxyd", oxydcolor=OXYD_FAKE, noshuffle=true}
ti["O"] = {"st_oxyd", name="oxyd#"}
ti["@"] = {"#ac_marble_black"}

wo(ti, " ", {
    "T#O###O###O###O#####",
    "#@ >   >   >      ##",
    "#^0#   #   #     #N#",
    "# 1 #     #     #N #",
    "# 2  #   #     #N  #",
    "# Q   # #     #   m#",
    "# Q    #     #   m #",
    "# Q   # #   #   m  #",
    "# Q  #   #   #    M#",
    "# Q #     #   #  M #",
    "# Q#   #   #   #M  #",
    "#  <   <   <    #  #",
    "##O###O###O###O#####"})

wo:shuffleOxyd({no["oxyd#*"]:sort("circular"), circular=true})

function laser()
    t = no["timer"]["_t"]
    d = no["timer"]["_d"]
    no["laser" .. tostring(t)]:on()
    no["laser" .. tostring((t + d) % 3)]:off()
    no["timer"]["_t"] = (t + 1) % 3
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
