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

  1. --Siegfried Fennig 06.05.2003 Rev.1
  2.  
  3. levelw = 20
  4. levelh = 13
  5.  
  6. create_world(levelw, levelh)
  7. enigma.ConserveLevel = FALSE
  8. oxyd_default_flavor = "b"
  9. fill_floor("fl-samba", 0, 0, level_width, level_height)
  10.  
  11. function renderLine( line, pattern)
  12.     for i=1, strlen(pattern) do
  13.       local c = strsub( pattern, i, i)
  14.       if c =="t" then
  15.          set_stone("st-turnstile",i-1,line)
  16.       elseif c == "n" then
  17.          set_stone("st-turnstile-n",i-1,line)
  18.       elseif c == "s" then
  19.          set_stone("st-turnstile-s",i-1,line)
  20.       elseif c == "e" then
  21.          set_stone("st-turnstile-e",i-1,line)
  22.       elseif c == "w" then
  23.          set_stone("st-turnstile-w",i-1,line)
  24.       elseif c == "r" then
  25.          set_stone("st-rock5",i-1,line)
  26.       elseif c == "T" then
  27.          set_item("it-trigger",i-1,line, {action="onoff", target="laser"})
  28.       elseif c == "L" then
  29.          set_attrib(laser(i-1,line, FALSE, EAST), "name", "laser")
  30.       elseif c == "S" then
  31.          set_stone("st-stoneimpulse",i-1,line)
  32.       elseif c == "H" then
  33.          set_stone("st-stoneimpulse-hollow",i-1,line)
  34.       elseif c == "#" then
  35.          set_floor("fl-abyss",i-1,line)
  36.       elseif c == "m" then
  37.          mirrorp(i-1,line,0,0,4)
  38.       elseif c == "M" then
  39.          mirrorp(i-1,line,0,0,3)
  40.       elseif c == "x" then
  41.          mirrorp(i-1,line,0,1,4)
  42.       elseif c == "3" then
  43.          mirror3(i-1,line,0,0,3)
  44.       elseif c == "o" then
  45.          oxyd( i-1, line)
  46.       elseif c == "a" then
  47.          set_actor("ac-blackball", i-.5,line+.5, {player=0})
  48.         end
  49.     end
  50. end
  51. --              01234567890123456789
  52. renderLine(00, "rrrrrrrrrrrrrrrrrrrr")
  53. renderLine(01, "r     rrrrrrrr     r")
  54. renderLine(02, "r     rm mrror     r")
  55. renderLine(03, "r     rSn  n r   trr")
  56. renderLine(04, "r     r#t wte    sHo")
  57. renderLine(05, "L 3   x sxn      #SS")
  58. renderLine(06, "r     te  te     ##S")
  59. renderLine(07, "r     s   s       #S")
  60. renderLine(08, "r     nwtwt a     #S")
  61. renderLine(09, "r    wt s s      T r")
  62. renderLine(10, "r M   s  M         r")
  63. renderLine(11, "r r   rrrrrrrr     r")
  64. renderLine(12, "rrrrrrrrrrrrrrrrrrrr")
  65. --              01234567890123456789
  66.