<?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="Per.Oxyd Link 61" el:subtitle="Per.Oxyd Link 61" el:id="peroxyd2p61"/>
      <el:version el:score="1" el:release="1" el:revision="0" el:status="released"/>
      <el:author  el:name="Raoul Bourquin" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2006 Raoul Bourquin</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="0.92" el:engine="per.oxyd">
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="true"/>
      <el:score el:easy="-" el:difficult="2:57"/>
    </el:info>
    <el:luamain><![CDATA[
-- GENERAL --
levelh = 13
levelw = 39

create_world(levelw, levelh)

oxyd_default_flavor = "c"

function renderLine( line, pattern)
    for i=1, strlen(pattern) do
        local c = strsub( pattern, i, i)
          if c=="o" then
            oxyd(i-1,line)
        elseif c==" " then
            set_floor("fl-mortar",i-1,line)
        elseif c=="-" then
            set_floor("fl-abyss",i-1,line)
        elseif c=="#" then
            set_stone("st-plain",i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="B" then
            set_stone("st-black4",i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="W" then
            set_stone("st-white4",i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="+" then
            set_stone("st-puzzle-nesw",i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="*" then
            set_stone("st-puzzle-hollow",i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="C" then
            set_stone("st-plain_break",i-1,line)
            set_floor("fl-mortar",i-1,line)
        end
    end    
end

renderLine(00 , "---------------------------------------")
renderLine(01 , "#######################################")
renderLine(02 , "#W      ####      B#                 +#")
renderLine(03 , "oW  B++++++++++W  Bo                 +o")
renderLine(04 , "#W  B++++++++++W  B#   B++++++++++W  +#")
renderLine(05 , "#W  B++*+*+*+++W  B#   B++*+*+*+++W   #")
renderLine(06 , "#   B+++++*++++W   C   B+++++*++++W   #")
renderLine(07 , "#W  B+++++++*++W  B#   B+++++++*++W   #")
renderLine(08 , "#W  B+++*++++++W  B#   B+++*++++++W   #")
renderLine(09 , "oW  B++++++++++W  Bo                  o")
renderLine(10 , "#W      ####      B#                  #")
renderLine(11 , "#######################################")
renderLine(12 , "---------------------------------------")

oxyd_shuffle()

-- Special
set_actor("ac-blackball", 3.5,6.5, {player=0})
set_actor("ac-whiteball", 16.5,6.5, {player=1})
set_item("it-yinyang", 3, 6)
set_item("it-yinyang", 16, 6)
set_item("it-magicwand", 2, 6)
set_item("it-magicwand", 17, 6)
set_item("it-seed", 1, 8)
set_item("it-seed", 1, 9)
set_item("it-seed", 1, 10)
set_item("it-hammer", 1, 2)
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
