<?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="Thread-safe II" el:subtitle="" el:id="devnull71"/>
      <el:version el:score="1" el:release="1" el:revision="4" el:status="released"/>
      <el:author el:name="/dev/null" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2010 dev0</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:score el:easy="-" el:difficult="4:56"/>
    </el:info>
    <el:luamain><![CDATA[
wo["AutoRespawn"] = true
wo["AllowSuicide"] = false
wo["MaxOxydColor"] = OXYD_BROWN

ti[" ."] = {"it_burnable_fireproof"}
ti["  "] = ti[" ."] .. {"fl_bright_framed"}
ti[" ~"] = {"fl_water"}
ti["# "] = {"st_rawglass_quad"}
ti["N "] = {"st_nil"}
ti["box"] = ti["  "] .. {"st_box_rock", name = "box%%"}
ti["O "] = {"st_oxyd_a", name = "opalsLeft#", selection = {"=box", "=N "}}
ti["o "] = {"st_oxyd_e", name = "opalsRight#", selection = {"=box", "=N "}}
ti["0 "] = {"st_oxyd", noshuffle = true, oxydcolor = OXYD_GRAY}
ti["@ "] = {"#ac_marble_black"}

wo(res.composer(res.autotile(ti, {"M", "box"})), "  ", {
    " ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~",
    " ~     ~ ~ ~ ~ ~ ~ ~O    ~ ~ ~ ~    o~ ~",
    " ~   ~O  ~  O Mb   ~ ~ ~   ~        o~ ~",
    " ~ ~ ~   ~ ~       ~ ~ ~ ~ ~        o~ ~",
    " ~O  ~O  ~ ~ ~#. ~ ~ ~ ~ ~ ~ ~  MA  o~ ~",
    " ~ ~ ~     ~ ~ ~ ~ ~ ~ ~ ~ ~ ~  MC   ~ ~",
    "0~ ~ ~ ~ ~   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~    @.0~",
    " ~ ~ ~ ~ ~   ~ ~ ~ ~ ~   ~           ~ ~",
    " ~ ~         ~ ~ ~ ~ ~ ~ ~ ~    MB  o~ ~",
    " ~ ~  #. ~ ~   ~ ~ ~Mc   ~ ~        o~ ~",
    " ~ ~  Ma ~ ~O  ~ ~ ~O  ~ ~ ~        o~ ~",
    " ~ ~     ~ ~ ~O      ~ ~ ~ ~ ~ ~    o~ ~",
    " ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~"})

wo:shuffleOxyd({"opalsRight#*", max = 0}, {"opalsLeft#*", max = 0})
wo:add({"ot_wire", anchor1 = "box%A", anchor2 = "box%a"})
wo:add({"ot_wire", anchor1 = "box%B", anchor2 = "box%b"})
wo:add({"ot_wire", anchor1 = "box%C", anchor2 = "box%c"})
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
