home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 August / GSSH0804.iso / Geschicklichkeit / Enigma / Enigma-081.exe / data / levels / duffy10.lua < prev    next >
Text File  |  2003-01-30  |  1KB  |  49 lines

  1. levelw=50
  2. levelh=50
  3.  
  4. create_world( levelw, levelh)
  5.  
  6. fill_floor("fl-leaves", 0,0,levelw,levelh)
  7.  
  8. function renderLine( line, pattern)
  9.     for i=1, strlen(pattern) do
  10.         local c = strsub( pattern, i, i)
  11.         if c =="#" then
  12.             set_stone( "st-greenbrown", i-1, line)
  13.         elseif c == "o" then
  14.             oxyd( i-1, line)
  15.                 elseif c == "!" then
  16. --            abyss(i-1,line)
  17.             fill_floor("fl-water", i-1,line, 1,1)
  18.         elseif c=="r" then
  19.             oneway(i-1,line, enigma.EAST)
  20.         elseif c=="z" then
  21.             set_actor("ac-blackball", i-.5,line+.5, {player=0})
  22.         elseif c=="+" then
  23.             set_stone( "st-wood", i-1, line)
  24.         elseif c=="*" then
  25.             set_stone( "st-wood", i-1, line)
  26.             fill_floor("fl-water", i-1,line, 1,1)
  27.         end
  28.     end    
  29. end
  30.  
  31. -- Floor:  " "
  32. -- Border: "#"
  33. -- Oxyd:   "o"
  34.  
  35. renderLine(00,"####################")
  36. renderLine(01,"#  #  !!!!!!!!!!! o#")
  37. renderLine(02,"#  ++ !!!!!!!!!!!  #")
  38. renderLine(03,"#    !!!!!!!!!!!!  #")
  39. renderLine(04,"#  #!+   +!!!!! !  #")
  40. renderLine(05,"#  #!  +  !!!!! !  #")
  41. renderLine(06,"#  #! +z+ !!!!! !  #")
  42. renderLine(07,"#  #!  +  !!!!! !  #")
  43. renderLine(08,"# !!!+   +!!!!!+#  #")
  44. renderLine(09,"#  !!!!! !!!!!!!!  #")
  45. renderLine(10,"#!+!!####*!!!   !  #")
  46. renderLine(11,"#!      !!! + + # o#")
  47. renderLine(12,"####################")
  48.  
  49. oxyd_shuffle()