<?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="Shogun Connection I" el:subtitle="" el:id="devnull102"/>
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
      <el:author el:name="/dev/null" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2011 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="true"/>
      <el:score el:easy="-" el:difficult="2:04"/>
    </el:info>
    <el:luamain><![CDATA[
wo["AutoRespawn"] = true
wo["AllowSuicide"] = false

ti[" ~"] = {"fl_abyss"}
ti["  "] = {"fl_rock"}
ti["# "] = ti({"fl_gravel"}) .. {"st_rawglass_quad"}
ti["box"] = {"st_box_rock", name="box%%"}
ti["shogunS"] = {"st_shogun", name="shogunS%%", flavor="s"}
ti["shogunM"] = {"st_shogun", name="shogunM%%", flavor="m"}
ti["dotS"] = {"it_shogun_s", target="toggleDoors", action="signal"}
ti["dotM"] = {"it_shogun_m", target="toggleDoors", action="signal"}
ti["D "] = {"st_door", name="door#"}
ti["OB"] = {"st_oxyd", oxydcolor=OXYD_BLACK}
ti["OW"] = {"st_oxyd", oxydcolor=OXYD_WHITE}
ti["@0"] = {"#ac_marble_black", essential=INDISPENSABLE}
ti["@1"] = {"#ac_marble_white", essential=INDISPENSABLE}

wo(res.composer(res.autotile(ti, {"+", "box"}, {"M", "shogunM"}, {"S", "shogunS"}, {"m", "dotM"}, {"s", "dotS"})), "  ", {
    "# # # # # # # # # # # # # # # # # # # # ",
    "#         Sa    OB#         sB    # @1# ",
    "#   # #       OW  #     #     #       # ",
    "#         #   MC  # #           +c    # ",
    "# #   mB          #         SA        # ",
    "#             #   #       #     #  ~  # ",
    "# # D # # # # # # # # # # # # # # D # # ",
    "#    ~      #       #       #         # ",
    "#       #       #   # Sb    #       # # ",
    "#   #       SB      #   #       mA    # ",
    "#     +d  #     #   #   OWMD  #       # ",
    "# @0        sA      # OB          #   # ",
    "# # # # # # # # # # # # # # # # # # # # "})

wo:add({"ot_wire", anchor1="shogunS%A", anchor2="shogunS%a"})
wo:add({"ot_wire", anchor1="shogunS%B", anchor2="shogunS%b"})
wo:add({"ot_wire", anchor1="shogunM%C", anchor2="box%c"})
wo:add({"ot_wire", anchor1="shogunM%D", anchor2="box%d"})

wo:add({"ot_counter", name="toggleDoors", state=0, target="door#*", action_3="close", action_4="open"})
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
