home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 August / GSSH0804.iso / Geschicklichkeit / Enigma / Enigma-081.exe / data / levels / duffy23.lua < prev    next >
Text File  |  2003-08-27  |  2KB  |  56 lines

  1. levelw=50
  2. levelh=30
  3.  
  4. create_world( levelw, levelh)
  5.  
  6. fill_floor("fl-bluegreen", 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=="+" then
  19.             set_stone( "st-wood", i-1, line)
  20.         elseif c == "r" then
  21.             set_stone("st-bolder", i-1,line, {direction=EAST})
  22.         elseif c=="g" then
  23.             draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
  24.         elseif c=="l" then
  25.             oneway(i-1,line, enigma.WEST)
  26.         elseif c=="w" then
  27.             set_actor("ac-whiteball-small", i-1,line, {player=0, mouseforce=1})
  28.         elseif c=="H" then
  29.            hollow(i-1,line)
  30.  
  31.         elseif c=="$" then
  32.            hollow(i-1,line)
  33.            draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
  34.         end
  35.     end    
  36. end
  37.  
  38. -- Floor:  " "
  39. -- Border: "#"
  40. -- Oxyd:   "o"
  41.  
  42. renderLine(00,"#######################################")
  43. renderLine(01,"# gggg#gggggg#gggg l                  #")
  44. renderLine(02,"# gHg +  $Hg +  Hg l  w   w   w   w   #") 
  45. renderLine(03,"# g gg#ggg gg#gg g l                  #")
  46. renderLine(04,"###+######+#####+###                  #")
  47. renderLine(05,"#gg gg#ggg gg#gg g l    w   w   w     #")
  48. renderLine(06,"# g$g +  $H  + gHg l                  #")
  49. renderLine(07,"# gggg#g gggg#gg g l                  #")
  50. renderLine(08,"#+######+#######+###      w   w       #")
  51. renderLine(09,"#     #g gggg#gg g l                  #")
  52. renderLine(10,"#g $gg#ggH$  + gHg l w              w #")
  53. renderLine(11,"#g g  + ggggg#gggg l        w         #")
  54. renderLine(12,"#######################################")
  55.  
  56. oxyd_shuffle()