<?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="Laser Tricks" el:subtitle="" el:id="duffy84"/>
      <el:version el:score="1" el:release="2" el:revision="2" el:status="released"/>
      <el:author  el:name="Jacob Scott" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2004 Jacob Scott</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:comments><el:code>New API converted by /dev/null (July 2009)</el:code></el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
ti[" "] = {"fl_dark"}
ti["."] = {"fl_abyss"}
ti["#"] = {"st_laserswitch"}
ti["="] = {"st_greenbrown"}
ti["S"] = {"st_laserswitch", name = "ls", target = "toggleGate"}
ti["G"] = ti["#"] .. {"fl_dark", name = "gate"}
ti["+"] = ti["."] .. ti["#"]
ti["7"] = {"st_mirror", orientation = EAST, movable = true}
ti["8"] = {"st_mirror", orientation = SOUTH, movable = true}
ti["9"] = {"st_mirror", orientation = WEST, movable = true}
ti["/"] = {"st_mirror", orientation = EAST}
ti["M"] = {"st_coinslot", target = "laser"}
ti["L"] = {"st_laser_e", name = "laser", state = OFF}
ti["R"] = {"st_rotator"}
ti["B"] = {"st_boulder_s"}
ti["|"] = {"st_door", name = "door", faces = "ew", state = CLOSED}
ti["t"] = {"it_trigger", target = "door"}
ti["m"] = {"it_coin_m"}
ti["O"] = {"st_oxyd"}
ti["@"] = {"#ac_marble_black", -0.5, 0.0}

wo(ti, " ", {
    "####################...................",
    "#L    /     .     t#...................",
    "#M       m  .      #...................",
    "#    7    = ...... #...................",
    "# =   =     .    = #######.............",
    "#     9     +      #     #.............",
    "#mO @    8  |    S G   O #.............",
    "#     7     +      #     #.............",
    "# =   =     .    = #######.............",
    "#    9    = ...... #...................",
    "#        m  .      #...................",
    "#         / .    RB#...................",
    "####################..................."})

function toggleGate(value, sender)
    if no["ls"]["state"] == ON then
        wo[no["gate"]] = {"st_nil", "gate"}
    else
        wo[no["gate"]] = ti["#"]
    end
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
