<?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="Switch-Switch" el:subtitle="" el:id="RayWick002"/>
      <el:version el:score="3" el:release="3" el:revision="1" el:status="released"/>
      <el:author  el:name="Ray Wick" el:email="RayRWick@aol.com" el:homepage=""/>
      <el:copyright>Copyright © Ray Wick</el:copyright>
      <el:license el:type="Donated to Enigma under the projects license" el:open="true"/>
      <el:compatibility el:enigma="1.10" el:engine="enigma"/>
      <el:modes el:easy="true" el:single="true" el:network="true"/>
      <el:comments>
        <el:code>Converted to new API by R. Lamprecht.</el:code>
      </el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = not wo["IsDifficult"]
wo["ProvideExtralifes"] = not wo["IsDifficult"]

ti[" "] = {"fl_platinum", friction=4.5}
ti["~"] = {"fl_water"}
ti["#"] = {"st_purplegray"}
ti["W"] = {"st_passage_white", flavor = "frame"}
ti["V"] = {"st_passage_black", flavor = "frame"}
ti["<"] = {"st_oneway", orientation=WEST}
ti[">"] = {"st_oneway", orientation=EAST}
ti["x"] = {"it_bomb_black"}
ti["-"] = cond(wo["IsDifficult"], {"it_cross"}, {"nil"})
ti["H"] = {"st_box_hay"}
ti["+"] = ti["H"] .. ti["-"]
ti["="] = ti["H"] .. cond(wo["IsDifficult"], ti["-"], ti["x"])
ti["X"] = {"st_dispenser_bombblack"}
ti["s"] = ti["x"] .. ti["H"]
ti["M"] = {"st_mirror_slab", state = WEST, movable = true}
ti["A"] = {"st_key", target="laser"}
ti["a"] = {"it_key"}
ti["L"] = {"st_laser_s", "laser"}

ti["1"] = {"st_oxyd", "o1#"}
ti["2"] = {"st_oxyd", "o2"}
ti["3"] = {"st_oxyd", "o3"}
ti["4"] = {"st_oxyd", "o4#"}
ti["*"] = {"#ac_marble_black"}
ti["."] = {"#ac_marble_white"}

wo(ti, " ", {
    "#1#A######X###L###4#",
    "1W-  V  23  W   a-V4",
    "1W-  > ~~~~ <    -V4",
    "1W-  #~~~~~~#    -V4",
    "1W-  ~~~~~~~~    -V4",
    "1W-  ~~~~~~~~    -V4",
    "#*   ~~~~M~~~   x .#",
    "#V+  ~~~~~~~~  #s+W#",
    "#V+  ~~~~~~~~  #x=W#",
    "#V+  #~~~~~~#  #M=W#",
    "#V+  < ~~~~ >  #x=W#",
    "#V+  V  H   W  #x+W#",
    "####################"
})

wo:shuffleOxyd({"o1#*", max=1}, {"o1#*", "o3", min=1}, {"o4#*", "o2", min=1}, {"o4#*", max=1})
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
