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

  1. -- Siegfried Fennig
  2.  
  3. levelw = 20
  4. levelh = 13
  5.  
  6. create_world(levelw, levelh)
  7. draw_border("st-rock2")
  8. fill_floor("fl-bluegreen", 0,0, levelw,levelh)
  9.  
  10. draw_stones("st-rock2", {4,1}, {0,1},2)
  11. draw_stones("st-rock2", {4,4}, {0,1},2)
  12. draw_stones("st-rock2", {4,7}, {0,1},5)
  13. draw_stones("st-rock2", {15,1}, {0,1},5)
  14. draw_stones("st-rock2", {15,7}, {0,1},5)
  15. draw_stones("st-rock2", {1,5}, {1,0},3)
  16. set_stones("st-rock2", {{1,7},{3,7},{16,5},{16,7},{18,5},{18,7}})
  17.  
  18. set_floor("fl-bridge",  4,3, {name="bridge1"})
  19. set_floor("fl-bridge",  2,7, {name="bridge2"})
  20. set_floor("fl-bridge", 17,5, {name="bridge3"})
  21. set_floor("fl-bridge", 17,7, {name="bridge4"})
  22.  
  23. function sdot1()
  24.     bridgea=enigma.GetNamedObject("bridge1")
  25.     bridgeb=enigma.GetNamedObject("bridge2")
  26.     enigma.SendMessage(bridgea, "openclose", nil)
  27.     enigma.SendMessage(bridgeb, "openclose", nil)
  28. end
  29.  
  30. function sdot2()
  31.     bridgea=enigma.GetNamedObject("bridge3")
  32.     bridgeb=enigma.GetNamedObject("bridge4")
  33.     enigma.SendMessage(bridgea, "openclose", nil)
  34.     enigma.SendMessage(bridgeb, "openclose", nil)
  35. end
  36.  
  37. shogundot1(4,6, {action="callback", target="sdot1"})
  38. shogundot1(15,6, {action="callback", target="sdot2"})
  39.  
  40. set_stone("st-shogun", 6,6)
  41. set_stone("st-shogun", 13,6)
  42.  
  43. set_item("it-hollow", 2,2)
  44. set_item("it-hollow", 2,10)
  45. set_item("it-hollow", 17,2)
  46. set_item("it-hollow", 17,10)
  47.  
  48. set_actor("ac-whiteball-small",  7.5, 3.5, {player=0, mouseforce=1})
  49. set_actor("ac-whiteball-small",  13.5,2.5, {player=0, mouseforce=1})
  50. set_actor("ac-whiteball-small", 8.5, 9.5, {player=0, mouseforce=1})
  51. set_actor("ac-whiteball-small", 11.5,10.5, {player=0, mouseforce=1})
  52.