<?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="Random space" el:subtitle="" el:id="edward21"/>
      <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="true" 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="1:35"/>
    </el:info>
    <el:luamain><![CDATA[
create_world(20,37)

draw_border("st-actorimpulse")

fill_floor("fl-space",0,0,20,37)

oxyd_shuffle()

set_actor("ac-blackball",1.5,1.5,{player=0})
set_floor("fl-wood",1,1)

display.SetFollowMode(display.FOLLOW_SCROLLING)

for x=0, 19 do
  for y=0, 36 do
    if (x ~= 1) or (y ~= 1) then
      if random(0,30*options.Difficulty)==1 then
         set_stone("st-rubberband",x,y)
         set_floor("fl-wood",x+1,y)
         set_floor("fl-wood",x-1,y)
         set_floor("fl-wood",x,y+1)
         set_floor("fl-wood",x,y-1)
        if not difficult then
         set_floor("fl-wood",x+1,y+1)
         set_floor("fl-wood",x-1,y+1)
         set_floor("fl-wood",x-1,y-1)
         set_floor("fl-wood",x+1,y-1)
        end
      end
      if random(0,100)==1 then
        set_actor("ac-horse",random(1,18)+0.5,random(1,36)+0.5)
      end
    end
  end
end

for j = 1, 6 do
    repeat
        x = random(2, 18)
        y = random(2, 35)
    until enigma.GetStone(x,y) == nil
    oxyd(x,y)
end

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