<?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="Enigmaparcour I" el:subtitle="Open the Doors" el:id="mecke15"/>
      <el:version el:score="1" el:release="1" el:revision="$Revision: 36 $" el:status="released"/>
      <el:author  el:name="mecke" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2008 Thomas Bernhardt</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:control="force" el:scoreunit="duration" el:scoretarget="time"/>
      <el:comments>
        <el:credits el:showinfo="true" el:showstart="false">Thanks to Raoul Bourquin for the patterns, in the new API, and to Ronald Lamprecht for
the "bottlepattern"</el:credits>
      </el:comments>
      <el:score el:easy="14:51" el:difficult="18:10"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = true

if wo ["IsDifficult"] then
    ti["  "] = {"fl_fake_abyss"}
    ti[" v"] = {"fl_ice"}
    ti[" '"] = {"fl_rough"}
    ti["+ "] = ti[" '"] ..{"ac_rotor", 0.5, 0.5,}
else
    ti["  "] = {"fl_rough"}
    ti[" v"] = {"fl_rough"}
    ti["+ "] = ti[" v"] ..{"ac_rotor", 0.5, 0.5}
end
ti[" ~"] = {"fl_water"}
ti[" _"] = {"fl_swamp"}
ti[" ."] = {"fl_space"}
ti[" ("] = {"fl_slope_pe"}
ti["t "] = {"st_break_oxydc"}
ti["# "] = {"st_lightpassenger"}
ti["K "] = {"st_knight"}
ti["B "] = {"st_magic_brick"}
ti["O "] = {"st_rotator_ccw", movable=true}
ti["R "] = {"st_rubberband"}
ti["T "] = {"st_thief"}
ti["Y "] = {"st_rawglass"}
ti["r "] = {"st_brownie"}
ti["U1"] = {"st_passage_black_frame"}
ti["U2"] = ti["U1"] .. {"it_extralife"}
ti[" i"] = ti["U1"] .. {"fl_inverse"}
ti[" w"] = ti["U1"] .. {"fl_water"}
ti[" e"] = ti[" i"] .. {"it_hammer"}
ti["u "] = ti[" _"] .. {"st_grate_framed"}
ti["x "] = ti[" ("] .. {"it_brush"}
ti["D1"] = {"st_death"}
ti["D2"] = {"st_death_invisible"}
ti["D3"] = ti["D2"] .. {"it_umbrella_new"}
ti["H "] = ti[" i"] .. {"st_key", code=1, target={"door#5"}}
ti["G "] = ti[" _"] .. {"st_rawglass"}
ti["L "] = ti[" _"] .. {"st_laser_e", name="laser", state=ON}
ti["h1"] = {"st_bluegray_hollow"}
ti["A "] = ti[" ~"] .. {"st_actorimpulse"}
ti["I "] = {"st_oneway_black_w"}
ti["^1"] = {"st_boulder_n"}
ti["^2"] = ti[" ~"] .. {"st_boulder_n"}
ti["^3"] = ti["^2"] .. {"it_cross"}
ti["> "] = ti[" v"] .. {"st_boulder_e"}
ti["< "] = {"st_boulder_w"}
ti["3 "] = ti[" v"] .. {"st_box_wood"}
ti["2 "] = {"st_oneway_black_s"}
ti[" f"] = {"it_wrench"}
ti["4 "] = ti[" f"] ..{"st_oneway_w"}
ti["6 "] = {"st_oneway_e"}
ti["8 "] = {"st_oneway_black_n"}
ti["Q "] = {"st_break_oxydc"}
ti["m "] = ti[" _"] .. {"st_mirror_slab", movable=false, transparent=true, orientation=0}
ti["M1"] = ti[" _"] .. {"st_mirror_slab", movable=false, transparent=false, orientation=2}
ti["M2"] = ti[" _"] .. {"st_mirror_slab", movable=false, orientation=1}
ti["X "] = ti[" ~"] .. {"st_oxyd", flavor="a"}
ti["S "] = ti[" _"] .. {"st_laserswitch", target={"door#7", "door#8"}}
ti[":1"] = {"st_door", name="door#1", flavor="d", faces="ew"}
ti[":2"] = {"st_door", name="door#2", flavor="d", faces="ew"}
ti[":3"] = {"st_door", name="door#3", flavor="d", faces="ew"}
ti[":4"] = {"st_door", name="door#4", flavor="d", faces="ew"}
ti[":5"] = {"st_door", name="door#5", flavor="d", faces="ew"}
ti[":6"] = {"st_door", name="door#6", flavor="d", faces="ew"}
ti[":7"] = {"st_door", name="door#7", flavor="d", faces="ew"}
ti[":8"] = {"st_door", name="door#8", flavor="d", faces="ew"}
ti[":9"] = {"st_door", name="door#9", flavor="d", faces="ew"}
ti["? "] = ti[" ~"] .. {"st_actorimpulse_invisible"}
ti["z "] = ti[" v"] .. {"st_break_oxydc"}
ti["N "] = ti[" v"] .. {"st_break_oxydc"}
ti["- "] = ti[" ~"] .. {"it_strip_ew"}
ti["b "] = ti[" ~"] .. {"it_bottle"}
ti["h2"] = ti["h1"] .. {"it_cherry"}
ti["h3"] = ti["h1"] .. {"it_glasses"}
ti["5 "] = {"it_key", code=1}
ti["o "] = {"it_springboard"}
ti["j "] = {"it_magicwand"}
ti[" z"] = {"it_bottle"}
ti["P "] = {"st_grate_cross"}
ti["9 "] = {"st_turnstile"}
ti["a "] = {"st_turnstilearm", orientation=NORTH}
ti["q "] = {"st_turnstilearm", orientation=SOUTH}
ti["k "] = {"st_turnstilearm", orientation=WEST}
ti["l "] = {"st_turnstilearm", orientation=EAST}
ti[" *"] = {"it_crack_l"}
ti["* "] = ti[" *"] ..  {"#ac_marble_black"}
ti["J "] = {"#ac_top", range=1, strength=1}
ti["= "] = {"#ac_horse"}
ti["$1"] = {"it_trigger", target="door#2"}
ti["$2"] = {"it_trigger", target="door#1"}
ti["$3"] = {"it_trigger", target="laser"}
ti["$4"] = {"it_trigger", target="door#3"}
ti["$5"] = {"it_trigger", target="door#4"}
ti["$6"] = {"it_trigger", target="door#9"}
ti["$7"] = {"it_trigger", target="door#6"}
ti["V1"] = ti[" i"] .. {"it_vortex_open", name="vortex1", destination="vortex2"}
ti["V2"] = ti[" i"] .. {"it_vortex_open", name="vortex2", destination="vortex1"}

local resolver = res.composer(ti)

w, h = wo(resolver, "  ", {
-- 00010203040506070809101112131415161718192021222324
  "# # # # # # # # # # # # # # # # # # # # # # # # # ",
  "#  iH  w i i eD2D2D3D2D2D2x  .  =    .$1#  v v v# ",
  "#  i w w i w w  h1h3h1  D2 ~ ~ .D1 . ~ ~#  vX  v# ",
  "#  i i wV2 i w  T T T   $3r             #  v v v# ",
  "#  w iV1 w i i    *     D1A A A A A 2 # #  vX  v# ",
  "# M2G G m G M2-   a~  - 6 +  v v v v6v$2#  v v v# ",
  "#  _ _G G G G  ~ ~9  ~ ~K # # # # # # # #  vX  v# ",
  "# L  _G M1G M2-   q~  - :1:2:3:4:5:6:7:8:9K K K # ",
  "#  _ _G G G G  ~k~9 l~ ~K # # # # # # # #  vX  v# ",
  "# S u G m G M2-    ~  - 4 3 < N  v v v$5#  v v v# ",
  "# > ^1^2^3$4Y     J     D1  Q 8 8 8 Q $7#  vX  v# ",
  "# ^1^1^1^1U1U1  h1T h1  B O     O     D1#  v v v# ",
  "# j       U1U2  T h2T   B   ? ? o ? ? 5 #  vX  v# ",
  "# R R R R R R   h1h2h1  B     P b     $6#  v v v# ",
  "# # # # # # # # # # # # # # # # # # # # # # # # # "
})

wo:shuffleOxyd()
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
      <el:string el:key="subtitle">
        <el:english el:translate="true"/>
        <el:translation el:lang="de">Öffne die Tore</el:translation>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
