<?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="Oxyd Link 68" el:subtitle="Oxyd Link 68" el:id="oxyd2p68"/>
      <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="oxyd1">
       <el:dependency el:path="lib/libpuzzle" el:id="lib/libpuzzle" el:release="1" el:preload="true"/>
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="true"/>
      <el:comments>
        <el:code>Lua 5.1 and XML converted by Leveladministrators</el:code>
      </el:comments>
      <el:score el:easy="-" el:difficult="0:34"/>
    </el:info>
    <el:luamain><![CDATA[
-- GENERAL --
levelw = 20
levelh = 13
create_world(levelw, levelh)
enigma.ConserveLevel = FALSE
oxyd_default_flavor = "a"

-- DESIGN --
boden="fl-abyss"
wand="st-brick"

fill_floor(boden, 0,0, level_width,level_height)
fill_floor("fl-metal", 0,1, level_width,level_height-2)

function renderLine( line, pattern)
    for i=1, strlen(pattern) do
        local c = strsub( pattern, i, i)
        if c =="#" then
            set_stone(wand, i-1, line)
        elseif c =="w" then
            set_stone("st-break_acwhite", i-1, line)
        elseif c =="s" then
            set_stone("st-break_acblack", i-1, line)
        elseif c =="H" then
            set_stone("st-metal_hole", i-1, line)
          elseif c=="o" then
            oxyd(i-1,line)
        end
    end    
end

renderLine(00 , "                    ")
renderLine(01 , "####################")
renderLine(02 , "#        ##        #")
renderLine(03 , "#        ##        #")
renderLine(04 , "#                  #")
renderLine(05 , "#w       HH       s#")  
renderLine(06 , "ow       HH       so")
renderLine(07 , "#w                s#")
renderLine(08 , "#        ##        #")
renderLine(09 , "#        ##        #")
renderLine(10 , "#        ##        #")
renderLine(11 , "####################") 
renderLine(12,  "                    ")

oxyd_shuffle()

--Ring
puzzle({{1,1,1,1},{1,0,0,1},{1,0,0,1},{1,1,1,1}},8,4,"red")

-- Special
set_item("it-document",4,3,{text="text1"})
set_item("it-hammer",10,5)

--Actors
set_item("it-yinyang", 4,6)
set_item("it-yinyang", 15,6)
set_actor("ac-blackball", 4.5, 6.5, {player=0})
set_actor("ac-whiteball",  15.5, 6.5, {player=1})
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
      <el:string el:key="text1">
        <el:english el:translate="true">It's a ring!</el:english>
        <el:translation el:lang="de">Es ist ein Ring!</el:translation>
      </el:string> 
    </el:i18n>
  </el:protected>
</el:level>
