<?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="Space City" el:subtitle="" el:id="edward25"/>
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
      <el:author  el:name="Edward" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2006 Edward</el:copyright>
      <el:license el:type="Donated to Enigma under the projects license" 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="6:31"/>
    </el:info>
    <el:luamain><![CDATA[
create_world(77,37)

fill_floor("fl-space",0,0,80,40)

function renderLine(line,pattern)
    for i=1, strlen(pattern) do
        local c=strsub(pattern,i,i)
        if c=="#" then
            set_floor("fl-metal",i-1,line)
            set_stone("st-black4",i-1,line)
        elseif c=="=" then
            set_floor("fl-metal",i-1,line)
        elseif c=="X" then
            oxyd(i-1,line)
        elseif c=="x" then
            set_stone("st-grate1",i-1,line)
        elseif c=="o" then
            set_stone("st-grate2",i-1,line)
        elseif c=="x" then
            set_stone("st-glass3",i-1,line)
        end
    end
end

draw_border("st-actorimpulse")

set_stone("st-laser-e",0,11,{name="rightwing"})
set_stone("st-laser-w",79,11,{name="leftwing"})
set_stone("st-laser-s",39,0,{name="downwind"})

set_stone("st-switch_black",38,7,{action="onoff",target="leftwing"})
set_stone("st-switch_black",38,8,{action="onoff",target="rightwing"})
set_stone("st-switch_black",40,7,{action="onoff",target="downwind"})

renderLine(00,"++++++++++++++++++++++++++++++++++++-++++++++++++++++++++++++++++++++++++++++")
renderLine(01,"+  xo ox                                                                    +")
renderLine(02,"+  ox#xo                                   x                        X       +")
renderLine(03,"+   #X#                                   xXx                               +")
renderLine(04,"+  ox#xoxxxxxxxxxxxxxxxxxxxxxxxxxxxx    xx   xx                             +")
renderLine(05,"+  xo ox   x########################xxxx#=====#x                            +")
renderLine(06,"+          xxxxxxxxxxxxxxxxxx#x#xxx#*x*x#x   x#x                            +")
renderLine(07,"+                 xxxxxxxxxxx#x#x x#*xxx#x   x#x       xxxxxx               +")
renderLine(08,"+                 x###########x#x x##=###x   x#x       x#===#ooo#           +")
renderLine(09,"+                 x#xxxxxxxxxxx#x xooooox    x#x       x=xxxx#x#x           +")
renderLine(10,"-                 x=x         x=x  oXXXo     x=x       x=x  oo=oo           -")
renderLine(11,"+                xx#xx        x#x  ooooo     x#xxxxxxxxx=x  xx xxxxxx       +")
renderLine(12,"+               xx###xx       x#xxxxxxx      x###########x xxx xxxxxxx      +")
renderLine(13,"+              xx#===#xx      x#######x      x      xxxxxxxxx   xX  xx      +")
renderLine(14,"+              x#==o==#x      x#xxxxx#x      x######x      xx x xxx xx      +")
renderLine(15,"+              o =oXo= o       #x x x#x      x#xxxx#x      xx x     xx      +")
renderLine(16,"+              x#==o==#x       ## X x#x      x#x   #x       xxx xxxxxx      +")
renderLine(17,"+              xx#===#xx       xxxxxx#xxxxxxxx#x   #xxxxxxx xxxxxxxxx       +")
renderLine(18,"+               xx###xx       x######=#########x   ########  xxx            +")
renderLine(19,"+                xx#xx        x#    x#xxxxxxxxxx   xxxxxxx#x                +")
renderLine(20,"+                 x=x         x#    x#xxxxxxxxxxxx       x#x                +")
renderLine(21,"+          xxxxxxxx#x         x#    x##############      x#x                +")
renderLine(22,"+         x###=####x          x#    xxxxxxxxxxxxxx#      x#x                +")
renderLine(23,"+        x#xxxxxxxx           x#   x              #      x#xxxxx            +")
renderLine(24,"+        x=x               #   x   #              #      x######x           +")
renderLine(25,"+        x#x               xx#x#x#xx              #       xxxxx#x  xxxxx    +")
renderLine(26,"+     #####                # x x x #              #           x#x xxx xxx   +")
renderLine(27,"+    ##xxx##                 x # x                #           x#xxxx # xx   +")
renderLine(28,"+    #xxxxx#                 X   X                #           x###x #X# x   +")
renderLine(29,"+    #xXxxx#                                      # xx   x     xxxxx # xx   +")
renderLine(30,"+    ##xxxx#                                      #xx    x        xxx xxx   +")
renderLine(31,"+    xxxxx##                                      #x xxxxx         xxxxx    +")
renderLine(32,"+    xxxx##                                       ###xX#                    +")
renderLine(33,"+    #####                                         x xxxxx                  +")
renderLine(34,"+                                                  xx    x                  +")
renderLine(35,"+                                                   xx   x                  +")
renderLine(36,"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")

oxyd_shuffle()
set_actor("ac-blackball",39.5,18.5,{player=0})
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
