<?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 Random Resolver" el:subtitle="" el:id="20080608ral108"/>
      <el:version el:score="1" el:release="1" el:revision="$Revision: 1445 $" 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_water"}
ti["s"] = {"fl_sahara"}
ti["t"] = {"fl_tigris"}
ti["i"] = {"fl_inverse_gray"}
ti["b"] = {"fl_yinyang_yin"}
ti["w"] = {"fl_yinyang_yang"}

ti["c"] = {"it_coin_s"}
ti["p"] = {"it_brush"}

ti["1"] = {"ac_marble", 0, 0.5}

simple_random = res.random(ti, " ", {"s", "t"})

full_random = res.random(simple_random, {".",{"C","c"},{"p","p"}},
                                        {{"i",3},{"b",4},{"w",1}})

w, h = wo(full_random, "s", {
"         ~~.........",
"         ~~.........",
"         ~~......C..",
"         ~~.........",
"         ~~.........",
"         ~~.........",
"         c1.........",
"         ~~.........",
"         ~~.........",
"         ~~.........",
"         ~~......p..",
"         ~~.........",
"         ~~........."
})
  ]]></el:luamain>
    <el:i18n>
	 <el:string el:key="title">
	   <el:english el:translate="false"/>
	 </el:string>
   </el:i18n>
  </el:protected>
</el:level>

