<?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="Soaring High" el:subtitle="Oxyd 54" el:id="siegfried101"/>
      <el:version el:score="1" el:release="1" el:revision="0" el:status="released"/>
      <el:author  el:name="Siegfried Fennig" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2003 Siegfried Fennig</el:copyright>
      <el:license el:type="GPL version 2" el:open="true"/>
      <el:compatibility el:enigma="0.92" el:engine="oxyd1">
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:comments>
        <el:code>Lua 5.1 and XML converted by Leveladministrators</el:code>
      </el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
levelw = 39
levelh = 13

create_world(levelw, levelh)
enigma.ConserveLevel = FALSE

oxyd_default_flavor = "d"
fill_floor("fl-wood")
fill_floor("fl-abyss", 0, 0, 19, level_height)

function renderLine( line, pattern)
    for i=1, strlen(pattern) do
      local c = strsub( pattern, i, i)
      if c =="A" then
         set_item("it-vortex-open", i-1,line, {targetx = 37.5, targety =  1.5})
      elseif c == "B" then
         set_item("it-vortex-open", i-1,line, {targetx = 20.5, targety =  9.5})
      elseif c == "C" then
         set_item("it-vortex-open", i-1,line, {targetx = 20.5, targety = 10.5})
      elseif c == "w" then
         set_stone("st-wood",i-1,line)
      elseif c == "s" then
         set_stone("st-stoneimpulse",i-1,line)
      elseif c == "#" then
         set_floor("fl-abyss",i-1,line)
      elseif c == "x" then
         set_item("it-blackbomb",i-1,line)
      elseif c == "X" then
         set_stone("st-bombs",i-1,line)
      elseif c == "d" then
         document(i-1,line,"text1")
      elseif c == "D" then
         document(i-1,line,"text2")
      elseif c == "o" then
         oxyd( i-1, line)
      elseif c == "a" then
         set_actor("ac-blackball", i-.5,line+.5)
        end
    end
end
--                        1         2         3
--              012345678901234567890123456789012345678
renderLine(00, "                   ###############sssss")
renderLine(01, "                   #######      x    Cs")
renderLine(02, "                   #######sw ###x     s")
renderLine(03, "                   #sssssss#x###x s  ss")
renderLine(04, "                   #D     s x###x s# ##")
renderLine(05, "                   # #s # s x###xxs#x##")
renderLine(06, "                   # #s # s x###  s#X##")
renderLine(07, "                   ###s # s x###  s# ##")
renderLine(08, "                   #d#s # s x     s# ##")
renderLine(09, "                   #A#s # s###### s# ##")
renderLine(10, "                   oBos ######### so o#")
renderLine(11, "                   #o#s           s#o##")
renderLine(12, "                   ###sssssssssssss####")
--              012345678901234567890123456789012345678
--                        1         2         3
oxyd_shuffle()

set_actor("ac-blackball",20.5, 8.5)

draw_stones("st-actorimpulse", {24, 7}, {0,1}, 3)
draw_stones("st-actorimpulse", {27,10}, {1,0}, 6)
set_stones("st-block", {{27, 8},{37, 1}})
fill_floor("fl-stwood",20, 9, 1,1)
fill_floor("fl-stwood",20,10, 1,1)
fill_floor("fl-stwood",37, 1, 1,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">No problem! Piece of cake!</el:english>
      </el:string> 
      <el:string el:key="text2">
        <el:english el:translate="true">It was easy, wasn't it!</el:english>
      </el:string> 
    </el:i18n>
  </el:protected>
</el:level>
