<?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="Flip" el:subtitle="" el:id="devnull90"/>
      <el:version el:score="1" el:release="1" el:revision="3" el:status="released"/>
      <el:author  el:name="/dev/null" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2011 /dev/null</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10">
        <el:dependency el:path="lib/libmaze" el:id="lib/libmaze" el:release="2" el:preload="true"/>
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="true"/>
      <el:score el:easy="-" el:difficult="6:00"/>
    </el:info>
    <el:luamain><![CDATA[
wo["AutoRespawn"] = true
wo["AllowSuicide"] = false

ti["  "] = {"fl_concrete"}
ti[" ~"] = {"fl_abyss"}
ti[" ,"] = {"st_nil"}
ti["# "] = {"st_granite"}
ti["= "] = {"st_granite_hollow"}
ti["+ "] = {"st_box_rock"}
ti["B "] = {"st_passage_black", flavor = "frame"}
ti["W "] = {"st_passage_white", flavor = "frame"}
ti["- "] = {"st_door_a", name = "doors#"}
ti["> "] = {"st_oneway_e", name = "oneways#"}
ti["< "] = {"st_oneway_w", name = "oneways#"}
ti["L "] = {"st_laser_e", name = "laser"}
ti["S "] = {"st_switch", target = {"oneways#*", "laser"}, action = "flip"}
ti["G "] = {"st_shogun_sml"}
ti["o "] = {"it_shogun_l", target = "doors#*"}
ti[" s"] = {"it_seed_hay"}
ti["O "] = {"st_oxyd", name = "oxydsNorth#"}
ti["0 "] = {"st_oxyd", name = "oxydsSouth#"}
ti["@ "] = {"#ac_marble_black", owner = YIN, controllers = CTRL_YIN, essential = INDISPENSABLE}
ti["* "] = {"#ac_marble_white", owner = YANG, controllers = CTRL_YANG, essential = INDISPENSABLE}

local resMaze = res.maze(ti, {area ={" ,"}, kernel= {1, 1}, render = {"  ", " ~", "= "}})
wo(res.composer(resMaze), "  ", {
  "# O # # # # # # # # # # # O # # # # O # O # # # # # # # # # # # # # # # # # # ",
  "O     *   B                ~          = W <  , , , , , , , , , , , , , ~=s  # ",
  "# + + +   # + #                       #   <  , , , , , , , , , , , , , ~ ~  # ",
  "#~ ~ ~ ~ ~# W #                       #   <  , , , , , , , , , , , , , , ,  # ",
  "#~ ~ ~ ~ ~#   #                       #   <  , , , , , , , , , , , , , , ,W O ",
  "#~ ~ ~O~ ~#   # W  ~ ~ ~ ~#~     ~    #   <  , , , , , , , , , , , , , , ,W # ",
  "#~+  ~ ~ ~=   > -  ~o~ ~ ~ ~ ~G~ ~  - # S L  , , , , , , , , , , , , , , ,  # ",
  "#~ ~ ~0~ ~#   #    ~ ~ ~ ~#~ ~     ~B #   <  , , , , , , , , , , , , , , ,B # ",
  "#~ ~ ~ ~ ~#   #                    ~  #   <  , , , , , , , , , , , , , , ,B 0 ",
  "#~ ~+~ ~ ~# B #                       #   <  , , , , , , , , , , , , , , ,  # ",
  "# + + +   # + #                       #   <  , , , , , , , , , , , , , ~ ~  # ",
  "0     @   W                ~          = B <  , , , , , , , , , , , , , ~=   # ",
  "# 0 # # # # # # # # # # # 0 # # # # 0 # 0 # # # # # # # # # # # # # # # # # # " 
})
wo:shuffleOxyd({"oxydsNorth#*", max = 0}, {"oxydsSouth#*", max = 0})
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
