<?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="At the Pool" el:subtitle="" el:id="devnull36"/>
      <el:version el:score="2" el:release="2" el:revision="5" el:status="released"/>
      <el:author  el:name="/dev/null" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2009 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="true" el:single="true" el:network="false"/>
      <el:score el:easy="6:00" el:difficult="6:00"/>
    </el:info>
    <el:luamain><![CDATA[
wo["AutoRespawn"] = wo["IsDifficult"]
wo["AllowSuicide"] = false
wo["ProvideExtralifes"] = not wo["IsDifficult"]

ti[" "] = {"fl_rock"}
ti["~"] = {"fl_water"}
ti["#"] = cond(wo["IsDifficult"], ti["~"] .. {"st_grate_cross"}, ti["~"] .. {"st_portal"})
ti["W"] = {"st_box_rock"}
ti["D"] = {"st_door", "door#", faces = "ew"}
ti["keys"] = {"it_key", code = "%%"}
ti["holes"] = {"st_key", code = "%%", target = "@door#*"}
ti["o"] = {"st_oxyd_c", "oxydsBorder#"}
ti["O"] = {"st_oxyd_c", "oxydsCenter#"}
ti["@"] = {"#ac_marble_black", 0.5}

wo(res.autotile(ti, {"a", "b", "keys"}, {"A", "B", "holes"}), " ", {
  "####################",
  "#~~     ~##~     ~~#",
  "#~ W~  W~##~W  ~W ~#",
  "#~  W  Wa##bW  W  ~#",
  "#~  ####~~~~####  ~#",
  "#~ W#~~~~~~~~~~#W ~#",
  "#~  #   ~~~~   #  ~#",
  "#~~~#W W ~~ W W#~~~#",
  "#~~~    W@ W    ~~~#",
  "#~~~   ######   ~~~#",
  "##~~~###OOOO###~~~##",
  "#o~~~D        D~~~o#",
  "##o#A##########B#o##"})

wo:shuffleOxyd({"oxydsCenter#*", max = 0}, {"oxydsBorder#*", max = 0})
if wo["IsDifficult"] then
    wo:add(YIN, {"it_extralife"})
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
