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

  1. -- Sven Siggelkow 2003
  2. -- ESPRIT #039
  3.  
  4. levelw = 20
  5. levelh = 13
  6. create_world(levelw, levelh)
  7. oxyd_default_flavor = "b"
  8. set_actor("ac-blackball", 11,8, {player=0})
  9. fill_floor("fl-red",0,0,levelw,levelh)
  10.  
  11. enigma.AddConstantForce(0,30)
  12.  
  13. function renderLine( line, pattern)
  14.     for i=1, strlen(pattern) do
  15.       local c = strsub( pattern, i, i)
  16.       if c ==   "#" then
  17.          set_stone("st-actorimpulse", i-1,line)
  18.       elseif c=="D" then
  19.          set_stone("st-death", i-1,line)
  20.       elseif c=="^" then
  21.          set_stone("st-oneway_black-n", i-1,line)
  22.       elseif c=="d" then
  23.          document(i-1,line,"This space intentionally left blank:                                                            ")
  24.       elseif c=="f" then
  25.          set_item("it-flagblack",i-1,line)
  26.       elseif c=="O" then
  27.      oxyd(i-1,line)         
  28.         end
  29.     end  
  30. end
  31. --               01234567890123456789
  32. renderLine(00 , "DDDDDDDDDDDDDDDDDDDD")
  33. renderLine(01 , "#DDDDDDDDDDDDDDDDDDD")
  34. renderLine(02 , "#O                d#")
  35. renderLine(03 , "#                  #")
  36. renderLine(04 , "####  O^^^^#^^^^O  #")  
  37. renderLine(05 , "#                  #")
  38. renderLine(06 , "# O         O     O#")
  39. renderLine(07 , "#    ####         f#")
  40. renderLine(08 , "#              #####")
  41. renderLine(09 , "#                  #")
  42. renderLine(10 , "#                  #")
  43. renderLine(11 , "####################")
  44. renderLine(12 , "####################") 
  45. --               01234567890123456789
  46.  
  47. oxyd_shuffle()
  48.  
  49.  
  50.  
  51.  
  52.  
  53.