home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 August / GSSH0804.iso / Geschicklichkeit / Enigma / Enigma-081.exe / data / levels / siegfried101.lua < prev    next >
Text File  |  2003-07-11  |  3KB  |  69 lines

  1. --Siegfried Fennig 11.07.2003 Rev.0
  2.  
  3. levelw = 39
  4. levelh = 13
  5.  
  6. create_world(levelw, levelh)
  7. enigma.ConserveLevel = FALSE
  8. enigma.SetCompatibility("oxyd1")
  9. oxyd_default_flavor = "d"
  10. fill_floor("fl-wood", 0, 0, level_width, level_height)
  11. fill_floor("fl-abyss", 0, 0, 19, level_height)
  12.  
  13. function renderLine( line, pattern)
  14.     for i=1, strlen(pattern) do
  15.       local c = strsub( pattern, i, i)
  16.       if c =="A" then
  17.          set_item("it-vortex-open", i-1,line, {targetx = 37.5, targety =  1.5})
  18.       elseif c == "B" then
  19.          set_item("it-vortex-open", i-1,line, {targetx = 20.5, targety =  9.5})
  20.       elseif c == "C" then
  21.          set_item("it-vortex-open", i-1,line, {targetx = 20.5, targety = 10.5})
  22.       elseif c == "w" then
  23.          set_stone("st-wood",i-1,line)
  24.       elseif c == "s" then
  25.          set_stone("st-stoneimpulse",i-1,line)
  26.       elseif c == "#" then
  27.          set_floor("fl-abyss",i-1,line)
  28.       elseif c == "x" then
  29.          set_item("it-blackbomb",i-1,line)
  30.       elseif c == "X" then
  31.          set_stone("st-bombs",i-1,line)
  32.       elseif c == "d" then
  33.          document(i-1,line,"No problem! Piece of cake!")
  34.       elseif c == "D" then
  35.          document(i-1,line,"It was easy, wasn't it!")
  36.       elseif c == "o" then
  37.          oxyd( i-1, line)
  38.       elseif c == "a" then
  39.          set_actor("ac-blackball", i-.5,line+.5, {player=0})
  40.         end
  41.     end
  42. end
  43. --                        1         2         3
  44. --              012345678901234567890123456789012345678
  45. renderLine(00, "                   ###############sssss")
  46. renderLine(01, "                   #######      x    Cs")
  47. renderLine(02, "                   #######sw ###x     s")
  48. renderLine(03, "                   #sssssss#x###x s  ss")
  49. renderLine(04, "                   #D     s x###x s# ##")
  50. renderLine(05, "                   # #s # s x###xxs#x##")
  51. renderLine(06, "                   # #s # s x###  s#X##")
  52. renderLine(07, "                   ###s # s x###  s# ##")
  53. renderLine(08, "                   #d#s # s x     s# ##")
  54. renderLine(09, "                   #A#s # s###### s# ##")
  55. renderLine(10, "                   oBos ######### so o#")
  56. renderLine(11, "                   #o#s           s#o##")
  57. renderLine(12, "                   ###sssssssssssss####")
  58. --              012345678901234567890123456789012345678
  59. --                        1         2         3
  60. oxyd_shuffle()
  61.  
  62. set_actor("ac-blackball",20.5, 8.5, {player=0})
  63.  
  64. draw_stones("st-actorimpulse", {24, 7}, {0,1}, 3)
  65. draw_stones("st-actorimpulse", {27,10}, {1,0}, 6)
  66. set_stones("st-block", {{27, 8},{37, 1}})
  67. fill_floor("fl-stwood",20, 9, 1,1)
  68. fill_floor("fl-stwood",20,10, 1,1)
  69. fill_floor("fl-stwood",37, 1, 1,1)