<?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="Demo Draw Map" el:subtitle="" el:id="20080610ral774"/>
      <el:version el:score="1" el:release="1" el:revision="$Revision: 1457 $" el:status="experimental"/>
      <el:author  el:name="Ronald Lamprecht" el:email="ral@users.berlios.de"/>
      <el:copyright>Copyright © 2008 Ronald Lamprecht</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10">
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:comments>
      </el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
ti[" "] = {"fl_plank"}
ti["X"] = {"st_oxyd"}
ti["B"] = {"st_passage_black", flavor="cross"}
ti["W"] = {"st_passage_white", flavor="cross"}

ti["y"] = {"it_yinyang"}
ti["1"] = ti["y"] .. {"#ac_marble_black"}
ti["2"] = ti["y"] .. {"#ac_marble_white"}

function myresolver(key, x, y)
    if key == "w" then
        wo:drawMap(ti, po(x-1, y-1), "-", {"-W-",
                                           "WXW",
                                           "-W-"})
        return ti({})
    elseif key == "b" then
        wo:drawMap(ti, po(x-1, y-1), "-", {"-B",
                                           "BXB",
                                           "-B"})
        return ti({})
    else
        return ti[key]
    end
end

w, h = wo(myresolver, " ", {
"                    ",
"  b         b       ",
"       w       w    ",
"                    ",
"                    ",
"   w                ",
"         12      b  ",
"              w     ",
"         w          ",
"      b             ",
"   w           b    ",
"         b          ",
"                    "
})

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

