<?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="Meandering Impulses" el:subtitle="" el:id="20110309ais523001"/>
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
      <el:author el:name="Alex Smith" el:email="ais523@bham.ac.uk" el:homepage=""/>
      <el:copyright>Copyright © 2010 Alex Smith</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.20"/>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:score el:easy="0:16" el:difficult="0:14"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = false

ti[" "] = {"fl_sand"}
ti["%"] = {"st_stoneimpulse"}
ti["+"] = {"st_rawglass_movable"}
ti["V"] = {"st_laser_s", state=ON}
if wo["IsDifficult"] then
    ti["t"] = {"it_trigger", target="mirror%%", action_0="turn", action_1="turnback"}
    ti["W"] = {"st_darkgray"}
    ti["X"] = {"st_mirror_slab", name="mirror%%", state=NORTH}
    ti["e"] = {"st_mirror_slab", name="mirror%5", state=NORTH, transparent=true}
else
    ti["t"] = {"it_trigger", target="door%%"}
    ti["W"] = ti["V"]
    ti["X"] = {"st_door_c", name="door%%"}
end
ti["O"] = {"st_oxyd", flavor="c"}
ti["@"] = {"#ac_marble"}

wo(res.autotile(ti, {"A","J","t"}, {"a","j","X"}), " ", {
    " %%%     %%%%   %%%%",
    " %@%     %  %%%%%+ %",
    "%%% %%%% %+D% %  E %",
    "%+ %%+ % %%   %% %%%",
    "% A% B %  % %F+%    ",
    "%%%% %%%%%% %  % VW ",
    "% %   % %  %%%%% af ",
    "%+  % C%% %%   % bg ",
    " J %% +%  % %  % ch ",
    "%%% %%%% %% %G+% di ",
    "%        %H+% %% ej ",
    "%I+%%% %%%  %    OO ",
    "%%%% %%% %%%%       "})

wo:shuffleOxyd()

if wo["IsDifficult"] then
    no["mirror%2"].counterclock = true
    no["mirror%4"].counterclock = true
    no["mirror%7"].counterclock = true
    no["mirror%9"].counterclock = true
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="true"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
