<?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="Too Many Holes" el:subtitle="" el:id="nat31"/>
      <el:version el:score="1" el:release="1" el:revision="0" el:status="released"/>
      <el:author  el:name="Nat Pryce" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2005 Nat Pryce</el:copyright>
      <el:license el:type="GPL version 2" 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[
create_world(58,37)
draw_border("st-glass1")
fill_floor("fl-leaves")
draw_border("st-glass1", 19, 12, 20, 13)

set_item("it-hollow", 22, 15, {essential=1})
set_item("it-hollow", 25, 15, {essential=1})
set_item("it-hollow", 28, 15, {essential=1})

set_item("it-hollow", 29, 21, {essential=1})
set_item("it-hollow", 32, 21, {essential=1})
set_item("it-hollow", 35, 21, {essential=1})

set_actor("ac-whiteball-small", 23, level_height/2, {player=0})
set_actor("ac-whiteball-small", 27, level_height/2, {player=0})
set_actor("ac-whiteball-small", 31, level_height/2, {player=0})
set_actor("ac-whiteball-small", 35, level_height/2, {player=0})

function random_x()
    return 19 + random(2,17)
end

function random_y()
    return 12 + random(2,10)
end

TOP=1
BOTTOM=2
LEFT=3
RIGHT=4

side = random(1,4)
if side == TOP then
    x = random_x()
    y = 12
elseif side == BOTTOM then
    x = random_x()
    y = 24
elseif side == LEFT then
    x = 19
    y = random_y()
else -- side == RIGHT
    x = 38
    y = random_y()
end

set_stone( "st-glass1_move", x, y )
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
