<?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="Impulsive Order" el:subtitle="" el:id="raywick5"/>
      <el:version el:score="2" el:release="2" el:revision="15" el:status="released"/>
      <el:author  el:name="Ray Wick" el:email=""/>
      <el:copyright>Copyright © 2008 Ray Wick</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:comments><el:code>New API converted by R. Bourquin</el:code></el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = true

ti["~"] = {"fl_water"}
ti["."] = {"fl_swamp"}
ti["-"] = {"fl_lawn"}
ti[" "] = {"fl_marble"}
ti["K"] = {"fl_abyss"}
ti["#"] = {"st_rawglass"}
ti["G"] = {"st_grate_framed"}
ti["+"] = {"st_box"}
ti["v"] = {"st_oneway", orientation=SOUTH}
ti[">"] = {"st_oneway", orientation=EAST}
ti["<"] = {"st_oneway", orientation=WEST}
ti["1"] = {"st_door", name="door1", flavor="d", faces="ew"}
ti["2"] = {"st_stoneimpulse", name="inner#"}
ti["4"] = {"st_stoneimpulse"}
ti["5"] = {"st_stoneimpulse", name="outer#"}
ti["L"] = {"st_laser", name="laser1", orientation=NORTH}
ti["M"] = {"st_mirror", transparent=true, orientation=SLASH}
ti["N"] = {"st_mirror", transparent=false, orientation=SLASH}
ti["Z"] = {"st_shogun_sml"}
ti["x"] = {"it_bomb_black"}
ti["s"] = ti["G"] .. {"it_spring_keep"}
ti["z"] = {"it_shogun_l", action="open", target="door1"}
ti["B"] = {"it_trigger", action_1="signal", action_0="nop", target="outer#*"}
ti["C"] = {"it_trigger", action_1="signal", action_0="nop", target="inner#*"}
ti["F"] = {"it_trigger", action="toggle", target="laser1"}
if wo["IsDifficult"] then
    ti[","] = ti["~"]
    ti["E"] = ti["F"]
else
    ti[","] = ti[" "]
    ti["E"] = ti["F"] .. {"fl_marble", force_y=20}
end
ti["O"] = {"st_oxyd"}
ti["@"] = {"#ac_marble_black"}

wo(ti, " ", {
    "####################",
    "O.....--,,,,--.....O",
    "#,,,,,.~~~~--,,,,,.#",
    "#....---.....,.....#",
    "# ~~~~ ,,,,,,,~~~~ #",
    "O                  O",
    "###4#4#4#4#4#4#4# ##",
    "###+#+#+#+#+#+#+# ##",
    "N# x x x x x x x x~#",
    "M# x x x x x x x x~O",
    "M# x x x x x x x x~#",
    "##v############## ##",
    "L#E######42###### ##",
    "#   #   44 K   GGGG#",
    "#v#v#  44  5#  #  G#",
    "#C#B# 44  44#  #  G#",
    "#v#v# 4  44##  #  G#",
    "# # #   44 ##  #  G#",
    "# # #z 44  ##@Z4  G#",
    "# > #   44 ##  #  G#",
    "# < # 4  44##  #  G#",
    "# # # 44  44#  #  G#",
    "# # #  44  5#  #  G#",
    "#v#v#   44 K   GGGG#",
    "#C#B#####42##### ###",
    "#v#v############ ###",
    "#                1 O",
    "##################s#",
    "O    ~~~~##~~~~    O",
    "#    ~~~~##~~~~    #",
    "#    ~~~~##~~~~    #",
    "#,,,,~~,    ,~~,,,,#",
    "#####~~,    ,~~#####",
    "#,,,,~~,    ,~~,,,,#",
    "#    ~~~~##~~~~    #",
    "O    ~~~~##~~~~    O",
    "####################"})

wo:shuffleOxyd()
 ]]></el:luamain>
    <el:i18n>
     <el:string el:key="title">
       <el:english el:translate="false"/>
     </el:string>
   </el:i18n>
  </el:protected>
</el:level>
