<?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="Laserpowered" el:subtitle="" el:id="raoul20"/>
      <el:version el:score="1" el:release="2" el:revision="4" el:status="released"/>
      <el:author  el:name="Raoul Bourquin" el:email="raoul@users.berlios.de" el:homepage=""/>
      <el:copyright>Copyright © 2006 Raoul Bourquin</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:score el:easy="-" el:difficult="1:16"/>
    </el:info>
    <el:luamain><![CDATA[
wo["FrictionStrength"] = 2.5

ti["  "] = {"fl_fake_abyss"}
ti["--"] = {"fl_bright"}
ti["##"] = {"st_redfiber"}
ti["LP"] = {"st_lightpassenger"}
ti["lp"] = cond(wo["IsDifficult"], ti["  "], ti["LP"])
ti["^ "] = {"st_laser", orientation=NORTH, name="lasern%%"}
ti["> "] = {"st_laser", orientation=EAST, name="lasere%%"}
ti["V "] = {"st_laser", orientation=SOUTH, name="lasers%%"}
ti["< "] = {"st_laser", orientation=WEST, name="laserw%%"}
ti["S "] = {"st_switch", color=WHITE, target="laser?%%"}
ti["t "] = ti["--"] .. {"it_trigger", invisible=true, target="laser?%%"}
ti["s "] = ti["--"] .. {"it_trigger", invisible=true, target="oxyd%%", action="open"}
ti["O "] = {"st_oxyd", name="oxyd%%"}
ti["@@"] = {"#ac_marble_white", owner=YIN, controllers=CTRL_YIN}

local resolver = res.autotile(ti, {"^", "^ "}, {">", "> "}, {"V", "V "}, {"<", "< "},
                                  {"t", "t "}, {"S", "S "}, {"O", "O "}, {"s", "s "})

wo(resolver, "  ", {
    "################VA####VaVz##VyVb####VB##",
    "##SA          >B                      <A",
    "############  ##  ObOc    sb    OdOe  ##",
    "##            ##  Oa##          ##Of  ##",
    "##  tatzt1tytb>a        salpsc        <b",
    "##  ts##  ##tx>s      sl##^1##sd      <x",
    "##  t4  @@  t2##  sk  LP<4##>2LP  se  ##",
    "##  tt##  ##tw>t      sj##V3##sf      <w",
    "##  tdtut3tvtc>d        silpsg        <c",
    "##            ##  Ol##          ##Og  ##",
    "############  ##  OkOj    sh    OiOh  ##",
    "##SB          >A                      <B",
    "################^B####^d^u##^v^c####^A##"})

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