<?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="Turnstiles for Two" el:subtitle="Rhapsody on Turnstiles in Blue and Green" el:id="20070314ral189"/>
      <el:version el:score="4" el:release="4" el:revision="$Revision: 191 $" el:status="released"/>
      <el:author el:name="Ronald Lamprecht" el:email="ral@users.berlios.de"/>
      <el:copyright>Copyright © 2006,2007,2008,2009 Ronald Lamprecht</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:credits el:showinfo="true" el:showstart="false">Thanks to Clifford and NObby for valuable feedback</el:credits>
      </el:comments>
      <el:score el:easy="10:36" el:difficult="19:56"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = false
wo["ProvideExtralifes"] = false
wo["FollowGrid"] = true
wo["FollowMethod"] = FOLLOW_SCROLL
wo["FollowAction"] = FOLLOW_HALFSCREEN

ti[" "] = {"fl_sahara"}
ti["."] = {"fl_sahara", friction=18, adhesion=3.0}
ti["!"] = {"fl_sahara", force_y=30}
ti["~"] = {"fl_water"}
ti["v"] = {"fl_yinyang_yang"}
ti["b"] = {"fl_yinyang_yin"}
ti["#"] = {"st_panel"}
ti["H"] = {"st_box"}
ti["N"] = {"st_turnstilearm_n"} .. ti["~"]
ti["n"] = {"st_turnstilearm_n"}
ti["S"] = {"st_turnstilearm_s"} .. ti["~"]
ti["s"] = {"st_turnstilearm_s"}
ti["W"] = {"st_turnstilearm_w"} .. ti["~"]
ti["w"] = {"st_turnstilearm_w"}
ti["E"] = {"st_turnstilearm_e"} .. ti["~"]
ti["e"] = {"st_turnstilearm_e"}
ti["T"] = {"st_turnstile_green"} .. ti["~"]
ti["J"] = {"st_oneway_white", orientation = EAST}
ti["I"] = {"st_oneway_white", orientation = NORTH}
ti["K"] = {"st_oneway_white", orientation = SOUTH}
ti["k"] = {"st_oneway_black", orientation = SOUTH}
ti["B"] = {"st_passage_black", flavor = "cross"}
ti["C"] = {"st_passage_black", flavor = "cross"} .. ti["."]
ti["V"] = {"st_passage_white", flavor = "cross"}
ti["X"] = {"st_passage_white", flavor = "cross"} .. ti["."]
ti["R"] = {"st_rotator_cw"} .. ti["~"]
ti["r"] = {"st_rotator_cw", movable=true}
ti["L"] = {"st_rotator_ccw"} .. ti["~"]
ti["ch"] = {"it_cherry"}
ti["G"] = {"st_rawglass"} .. ti["ch"]
ti["g"] = {"st_rawglass_movable"} .. ti["ch"] .. ti["~"]

ti["x"] = {"st_oxyd_a", "top#"}
ti["*"] = {"st_oxyd_a", "middle#"}
ti["o"] = {"st_oxyd_a", "last#"}
ti["O"] = {"st_oxyd_a", "bottom#"}

ti["yy"] = {"it_yinyang"}
ti["1"] = {"#ac_marble_black", essential=INDISPENSABLE} .. ti["yy"]
ti["2"] = {"#ac_marble_white", essential=INDISPENSABLE} .. ti["yy"]
ti["8"] = {"#ac_top", strength=0, range=0}

if wo["IsDifficult"] then
    ti["P"] = ti[" "]
    ti["p"] = ti[" "]
    ti["U"] = {"st_grate"}
    ti["u"] = ti["r"]
    ti["t"] = ti[" "]
    ti["A"] = {"it_blocker", "blocker"} .. ti["!"]
    ti["a"] = {"it_trigger", target="blocker"}
    ti["="] = ti["~"]
    ti["i"] = ti["~"]
    ti["m"] = {"st_mail_e"} .. ti["~"]
else
    ti["P"] = {"it_pin"}
    ti["p"] = {"st_brake"}
    ti["U"] = ti[" "]
    ti["u"] = ti[" "]
    ti["t"] = ti["r"]
    ti["A"] = ti[" "]
    ti["a"] = ti[" "]
    ti["="] = ti[" "]
    ti["i"] = {"st_invisible"} .. ti["~"]
    ti["m"] = ti["~"]
end

wo(ti, " ", {
    "####################",
    "#x m  x  JJ  x  ~ x#",
    "#  ~     ~~     ~  #",
    "#  ~     ~~  n  ~  #",
    "#BB~~~T~~~~~~T~~~BB#",
    "#  R  s      s  ~  #",
    "# b~b  P2  1P  vNv #",
    "# wTe          wTe #",
    "# vSv    n     vSv #",
    "#~~~~I~~~T~R~~k~~~~#",
    "#     ~ A~a  ~     #",
    "# ~~~~~      ~~~~~ #",
    "# ~ B ~ r p  ~ V ~ #",
    "# ~*BwTe UU wTeV*~ #",
    "# ~ B ~    u ~ V ~ #",
    "# ~~~~~      ~~~~~ #",
    "# N   ~~R~T~~~   N #",
    "#wT * ~   s  ~ * Te#",
    "# S   ~   U  ~   S #",
    "# ~~~~~R=  =L~~~~~ #",
    "# ~   ~      ~   ~ #",
    "# ~ o Te UtUwT o ~ #",
    "# ~   ~      ~   ~ #",
    "#V~~~~~  n   ~~~~~B#",
    "#     ~~WTE~~~     #",
    "#~~      s      ####",
    "#O~      ~~~  ###O##",
    "# ~      ~O~  #VVVV#",
    "# ~  ~~iXiBi  #GGGG#",
    "#wTe ~OB.N.X  R    #",
    "# ~~ ~~i~T~i~~ g w #",
    "# ~~   C.S.VO~  r  #",
    "# L~~  iViCi~~     #",
    "# ~8~  ~O~  N   G  #",
    "L T~L  ~~~  T    T #",
    "# s B       S      #",
    "####################"
})

if wo["IsDifficult"] then
    wo:add(YANG, {"it_bag"})
end

wo:shuffleOxyd({"last#*", min=1}, {"top#*", "bottom#*", min=2})
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
