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

  1. -- Sven Siggelkow 2003
  2. -- ESPRIT #077
  3.  
  4. levelw = 20
  5. levelh = 13
  6. create_world(levelw, levelh)
  7. oxyd_default_flavor = "a"
  8. set_actor("ac-blackball", 9.5, 2.5, {player=0})
  9. fill_floor("fl-abyss", 0,0, level_width,level_height)
  10.  
  11. draw_floor("fl-samba",{1,1},{0,1},11)
  12. draw_floor("fl-samba",{5,1},{0,1},11)
  13. draw_floor("fl-samba",{9,1},{0,1},3)
  14. draw_floor("fl-samba",{13,1},{0,1},11)
  15. draw_floor("fl-samba",{17,1},{0,1},11)
  16.  
  17. function renderLine( line, pattern)
  18.     for i=1, strlen(pattern) do
  19.       local c = strsub( pattern, i, i)
  20.       if c ==   "#" then
  21.          set_stone("st-rock6",i-1,line)
  22.       elseif c =="1" then                                                               
  23.          set_item("it-wormhole",i-1,line, {targetx="5.5",targety="8.5",strength=0})
  24.       elseif c =="2" then 
  25.          set_item("it-wormhole",i-1,line, {targetx="9.5",targety="2.5",strength=0})
  26.       elseif c =="3" then                                                               
  27.          set_item("it-wormhole",i-1,line, {targetx="13.5",targety="8.5",strength=0})
  28.       elseif c =="4" then                                                               
  29.          set_item("it-wormhole",i-1,line, {targetx="17.5",targety="8.5",strength=0})
  30.       elseif c =="5" then                                                               
  31.          set_item("it-wormhole",i-1,line, {targetx="1.5",targety="8.5",strength=0})
  32.       elseif c=="k" then
  33.      set_actor("ac-rotor", i-1+0.5,line+0.5, {mouseforce=1, range=6, force=40}) 
  34.       elseif c=="O" then
  35.      oxyd(i-1,line) 
  36.         end
  37.     end
  38. end
  39. --              01234567890123456789
  40. renderLine(00, "### ### ### ### ### ")
  41. renderLine(01, "# # # # # # # # # # ")
  42. renderLine(02, "# # #k# # # #k# # # ")
  43. renderLine(03, "# # # # #3# # # # # ")
  44. renderLine(04, "# # # # ### # # # # ")  
  45. renderLine(05, "# # # #     # # # # ")
  46. renderLine(06, "# # # #     # # # # ")
  47. renderLine(07, "# # # #     # # # # ")
  48. renderLine(08, "# # # #     # # # # ")
  49. renderLine(09, "# # # #     # # # # ")
  50. renderLine(10, "# # # #     # # # # ")
  51. renderLine(11, "#1# #2#     #4# #5# ")
  52. renderLine(12, "#O# #O#     #O# #O# ")
  53. --              01234567890123456789
  54.                               
  55. oxyd_shuffle()
  56.