<?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="Solar System" el:subtitle="" el:id="duffy98"/>
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
      <el:author  el:name="Jacob Scott" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2004 Jacob Scott</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="0.92">
      </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[
-- Small changes to the eternal-fire to make the sun look less pulsating
  -- Andreas and Raoul  Sep./Oct.'06

rooms_wide=10
rooms_high=5

levelw=1+(19*rooms_wide)
levelh=1+(12*rooms_high)

create_world( levelw, levelh)

fill_floor("fl-hay", 0,0,levelw,levelh)

function renderLine( line, pattern)
    for i=1, strlen(pattern) do
        local c = strsub( pattern, i, i)
        if c =="#" then
            set_floor("fl-space",i-1,line)
        elseif c == "o" then
            oxyd( i-1, line)
        elseif c == "*" then
            set_stone( "st-brownie", i-1, line)
        elseif c == "!" then
            abyss(i-1,line)
        elseif c == "~" then
            set_floor("fl-water",i-1,line)
        elseif c=="z" then
            set_actor("ac-blackball", i-1,line+.5, {player=0})
            set_floor("fl-metal",i-1,line)
        elseif c=="y" then
            set_actor("ac-whiteball", i-1,line+.5, {player=1})
        elseif c == "g" then
            draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
        elseif c=="+" then
            set_stone( "st-wood", i-1, line)
            set_floor("fl-leaves",i-1,line)
        elseif c=="=" then
            set_floor("fl-space",i-1,line)
        elseif c=="i" then
            set_floor("fl-ice",i-1,line)
        elseif c==" " then
            set_floor("fl-space",i-1,line)
        elseif c=="%" then
            set_floor("fl-metal",i-1,line)
            set_stone( "st-rock4", i-1, line)
        elseif c=="O" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-metal",i-1,line)
        elseif c=="A" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-rough-red",i-1,line)
        elseif c=="B" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-swamp",i-1,line)
        elseif c=="C" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-leaves",i-1,line)
        elseif c=="D" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-bumps",i-1,line)
        elseif c=="E" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-red",i-1,line)
        elseif c=="F" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-sahara",i-1,line)
        elseif c=="G" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-rock",i-1,line)
        elseif c=="H" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-rough-blue",i-1,line)
        elseif c=="I" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-black",i-1,line)
        elseif c=="J" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-sahara",i-1,line)
            set_stone( "st-greenbrown", i-1, line)
        elseif c=="`" then
            set_item("it-magnet",i-1,line,{on=1})
            set_floor("fl-water",i-1,line)
        elseif c=="K" then
            oxyd( i-1, line)
            set_floor("fl-rough-red",i-1,line)
        elseif c=="L" then
            oxyd( i-1, line)
            set_floor("fl-swamp",i-1,line)
        elseif c=="M" then
            oxyd( i-1, line)
            set_floor("fl-leaves",i-1,line)
        elseif c=="N" then
            oxyd( i-1, line)
            set_floor("fl-bumps",i-1,line)
        elseif c=="&" then
            oxyd( i-1, line)
            set_floor("fl-red",i-1,line)
        elseif c=="P" then
            oxyd( i-1, line)
            set_floor("fl-sahara",i-1,line)
        elseif c=="Q" then
            oxyd( i-1, line)
            set_floor("fl-rock",i-1,line)
        elseif c=="R" then
            oxyd( i-1, line)
            set_floor("fl-rough-blue",i-1,line)
        elseif c=="@" then
            oxyd( i-1, line)
            set_floor("fl-black",i-1,line)
        elseif c=="$" then
            oxyd( i-1, line)
            set_floor("fl-sahara",i-1,line)
        elseif c=="1" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-rough-red",i-1,line)
        elseif c=="2" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-swamp",i-1,line)
        elseif c=="3" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-leaves",i-1,line)
        elseif c=="4" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-bumps",i-1,line)
        elseif c=="5" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-red",i-1,line)
        elseif c=="6" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-sahara",i-1,line)
        elseif c=="7" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-rock",i-1,line)
        elseif c=="8" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-rough-blue",i-1,line)
        elseif c=="9" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-black",i-1,line)
        elseif c=="0" then
            set_item("it-extralife",i-1,line)
            set_floor("fl-sahara",i-1,line)
            set_stone( "st-greenbrown", i-1, line)
        elseif c=="j" then
            set_floor("fl-leaves",i-1,line)
        elseif c=="k" then
            set_floor("fl-black",i-1,line)
        elseif c=="l" then
            set_floor("fl-bumps",i-1,line)
        elseif c=="m" then
            set_floor("fl-concrete",i-1,line)
        elseif c=="n" then
            set_floor("fl-gravel",i-1,line)
        elseif c=="p" then
            set_floor("fl-light",i-1,line)
        elseif c=="r" then
            set_floor("fl-red",i-1,line)
        elseif c=="s" then
            set_floor("fl-rock",i-1,line)
        elseif c=="t" then
            set_floor("fl-rough-blue",i-1,line)
        elseif c=="u" then
            set_floor("fl-rough-red",i-1,line)
        elseif c=="v" then
            set_floor("fl-marble",i-1,line)
        elseif c=="V" then
            set_floor("fl-sahara",i-1,line)
        elseif c=="w" then
            set_floor("fl-tigris",i-1,line)
        elseif c=="W" then
            set_floor("fl-swamp",i-1,line)
        elseif c=="y" then
            set_floor("fl-sand",i-1,line)
        elseif c=="x" then
            set_floor("fl-metal",i-1,line)
        elseif c=="S" then
            set_floor("fl-sahara",i-1,line, {burnable=TRUE, noash=TRUE, secure=TRUE, initfire=TRUE})
        elseif c=="T" then
            set_floor("fl-sahara",i-1,line, {burnable=TRUE, noash=TRUE, secure=TRUE, initfire=TRUE})
        elseif c=="q" then
            set_item("it-umbrella",i-1,line)
            set_floor("fl-metal",i-1,line)
        elseif c=="h" then
            set_item("it-ring",i-1,line)
            set_floor("fl-metal",i-1,line)
        elseif c=="X" then
            set_floor("fl-black",i-1,line)
            set_stone( "st-death", i-1, line)
        elseif c=="f" then
            set_floor("fl-leaves",i-1,line)
            set_item("it-flagblack",i-1,line)
        end
    end
end

renderLine(00,"###############################################################################################################################################################################################")
renderLine(01,"#                                                                                                                                                                                             #")
renderLine(02,"#                                                                                  X                  rr                                                                                      #")
renderLine(03,"#                                                                                                   rrrrrr                                                                                    #")
renderLine(04,"#                         %%%%%%                                                                  rrrrrrrrrr                                                                                  #")
renderLine(05,"#                     qxx %OqqO% xxq                                                             rrrrrrrrrrrr                                                                                 #")
renderLine(06,"#                     OxqxhxxzxhxqxO                                                            rrrrrrrrrrrrrr                                                                                #")
renderLine(07,"#                     qxx %OqqO% xxq                                                           rrrrrrrrrrrrrrrr                                                                               #")
renderLine(08,"#                         %%%%%%                                                               rrrrrrrrr&rrrrrr                                                                               #")
renderLine(09,"#                                                            jjj                              rrrrrrrrrrrrrrrrrr                                                                              #")
renderLine(10,"#                                                          jjjjjjj                            rrrrrrrrrrrrrrrrrr                                                                    kk@       #")
renderLine(11,"#                                                         ~jjjjjjjj                          rrrrrrrrrEErrrrrrrrr                                                                   kIk       #")
renderLine(12,"#                                                        ~~jjMj~~~~~                         rrrrrrrrEEEErrrrrrrr                                                                   kkk       #")
renderLine(13,"#                                                       jjjjjjj~~~~~j                        rrrrrrrrrEErrrrrrrrr                                                                             #")
renderLine(14,"#                                                       j+jjj~~~~~jjj                XX       rrrrrrrrrrrrrrrrrr                                                                              #")
renderLine(15,"#                                                      jj+jj~~~~~jjjjj               XX       rrrrrrrrrrrrrrrrrr                                                                              #")
renderLine(16,"T                                                      jjjj~~~`~~j++jj                         rrrrrrrrrrrrrrrr                                                                               #")
renderLine(17,"TS                                                     jjjj~~~~~~jjjjj                         rrrrrrrrrrrrrrrr                                                                               #")
renderLine(18,"TSS                                                     j~~~~~jjMjjjj                           rrrrrrrrrrrrrr                                                                                #")
renderLine(19,"TSS                                                     j~~~~jjjjj~~j                            rrrrrrrrrrrr                                                                                 #")
renderLine(20,"TSSS                                                     ~~~~jjjj~~~                              rrrrrrrrrr                                                                                  #")
renderLine(21,"TSSS                                                      ~jjjfjj~~                                 rrrrrr                                                                                    #")
renderLine(22,"TSSSS                                                      jjjjjj~                                    rr                                                                                      #")
renderLine(23,"TSSSS                                                        jjj                                                                           sss                                                #")
renderLine(24,"TSSSSS                                                                                                                                   sssssss                                              #")
renderLine(25,"TSSSSS        uuu                                                                                                                       sssssssss                                             #")
renderLine(26,"TSSSSSS      uuuuu                                                                                                                      sssssssss                                             #")
renderLine(27,"TSSSSSS     uuuuuuu                                                                                                                    sssssssssss                                            #")
renderLine(28,"JJJJSSSS    uuuAKuu                                                                                                                    ssssGGGssss                                            #")
renderLine(29,"JJJJSSSS    uuuuuuu                                                                               XX                                   sssssssssss                                            #")
renderLine(30,"JJJJSSSS     uuuuu                                                                                XX                                    sssssQsss                                             #")
renderLine(31,"JJJJSSSS      uuu                                                               llll                                                    sssssssss                                             #")
renderLine(32,"JJJJSSSS                           WW                                          llllll                                                    sssssss                                              #")
renderLine(33,"TSSSSSS                          WWWWWW                                       llllllll                                                     sss                                                #")
renderLine(34,"TSSSSSS                         WWWWWWWW                                     llllllllll                                                                                                       #")
renderLine(35,"TSSSSS                         WWWWWWWWWW                                   llllllllllll                                                                                                      #")
renderLine(36,"TSSSSS                        WWWWWWWWWWWW                                  llllllllllll                         XX                                                                           #")
renderLine(37,"TSSSS                         WWWWWWWWWWWW                                  lllllDDlllll                         XX                                                                           #")
renderLine(38,"TSSSS                        WWWWWWWWWWWWWW                                 llllllllllll                                                                                                      #")
renderLine(39,"TSSS                         WWWWWBBBBWWWWW                                 lllllllNllll                                                                                                      #")
renderLine(40,"TSSS                         WWWWWWWWWWWWWW                                  llllllllll                                                                                                       #")
renderLine(41,"TSS                           WWWWWWWWWWWW                                    llllllll                                                                               ttt                      #")
renderLine(42,"TSS                           WWWLWWWWWWWW                                     llllll                               iiiiiii                                         ttttt                     #")
renderLine(43,"TS                             WWWWWWWWWW                                       llll                              iii     iii                                      ttRtttt                    #")
renderLine(44,"T                               WWWWWWWW                                                                         ii   VVV   ii                                     tttHttt                    #")
renderLine(45,"#                                WWWWWW                                                                         ii  VVVVVVV  ii                                    ttttttt                    #")
renderLine(46,"#                                  WW                                                                           i  VVVVVVVVV  i                                     ttttt                     #")
renderLine(47,"#                                                                                                              ii VVVVVVVVVVV ii                                     ttt                      #")
renderLine(48,"#                                                                                                XX            i  VVVVVVVVVVV  i                                                              #")
renderLine(49,"#                                                                                                XX            i VVVVVVVVVVVVV i                                                              #")
renderLine(50,"#                                                                                                XX            i VVVVVFFFVVVVV i                                                              #")
renderLine(51,"#                                                                                                              i VVVVVVVVVVVVV i                                                              #")
renderLine(52,"#                                                                                                              i  VVVVVPVVVVV  i                                                              #")
renderLine(53,"#                                                                                                              ii VVVVVVVVVVV ii                                                              #")
renderLine(54,"#                                                                                                               i  VVVVVVVVV  i                                                               #")
renderLine(55,"#                                                                                                               ii  VVVVVVV  ii                                                               #")
renderLine(56,"#                                                                                     XX                         ii   VVV   ii                                                                #")
renderLine(57,"#                                                                                     XX                          iii     iii                                                                 #")
renderLine(58,"#                                                                                                                   iiiiiii                                                                   #")
renderLine(59,"#                                                                                                                                                                                             #")
renderLine(60,"###############################################################################################################################################################################################")

oxyd_shuffle()

-- 1,2,2,3,3,4,4,5,5,6,6,7,7,(7)

display.SetFollowMode(display.FOLLOW_SCROLLING)
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
