<?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 64" el:subtitle="Per.Oxyd Link 64" el:id="peroxyd2p64"/>
      <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="-"/>
    </el:info>
    <el:luamain><![CDATA[
-- GENERAL --
levelh = 13
levelw = 20

create_world(levelw, levelh)

function renderLine( line, pattern)
	for i=1, strlen(pattern) do
		local c = strsub( pattern, i, i)
  		if c=="O" then
			oxyd(i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="#" then
            set_stone("st-beads",i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="Y" then
            set_stone("st-yinyang3",i-1,line)
            set_floor("fl-mortar",i-1,line)
        elseif c=="-" then
            set_floor("fl-abyss",i-1,line)
        elseif c==" " then
            set_floor("fl-mortar",i-1,line)

        elseif c=="b" then
            set_floor("fl-mortar",i-1,line)
            set_item("it-brush",i-1,line)

        elseif c=="^" then
            set_floor("fl-mortar",i-1,line)
            set_stone("st-puzzle-s",i-1,line)
        elseif c=="v" then
            set_floor("fl-mortar",i-1,line)
            set_stone("st-puzzle-n",i-1,line)
        elseif c=="<" then
            set_floor("fl-mortar",i-1,line)
            set_stone("st-puzzle-e",i-1,line)
        elseif c==">" then
            set_floor("fl-mortar",i-1,line)
            set_stone("st-puzzle-w",i-1,line)

        elseif c=="+" then
            set_floor("fl-mortar",i-1,line)
            set_stone("st-puzzle-hollow",i-1,line)
        elseif c=="*" then
            set_floor("fl-mortar",i-1,line)
            set_stone("st-puzzle-nesw",i-1,line)
		end
	end	
end

renderLine(00 , "--------------------")
renderLine(01 , "###############O####")
renderLine(02 , "#O## #  # #^O#O #  #")
renderLine(03 , "# ^<++> #^b+Y^ <++>O")
renderLine(04 , "# +  #   +#+#+O^ #^#")
renderLine(05 , "##+#### #+ vY+ +  +#")
renderLine(06 , "##v #<++>v# #v#+##+#")
renderLine(07 , "#O  #O #YO##O #vY *#")
renderLine(08 , "###Y#<++> #<++> # v#")
renderLine(09 , "#   #  #  #  # ## ##")
renderLine(10 , "# <++> #<++> #     #")
renderLine(11 , "####################")
renderLine(12 , "--------------------")

oxyd_shuffle()

-- Actors
-- the white actor IS under the yinyangstone!
-- thats not an error!

set_actor("ac-blackball", 3.5,4.5, {player=0})                    
set_actor("ac-whiteball", 3.5,8.5, {player=1})    

set_item("it-yinyang",3,4)     
set_item("it-yinyang",3,8)                           
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
