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

  1. -- Sven Siggelkow 2003
  2.  
  3. dofile(enigma.FindDataFile("levels/ant.lua"))
  4. cells={}
  5.  
  6. cells[" "]=cell{floor="fl-wood"}
  7. cells["#"]=cell{stone="st-brick"}
  8. cells["b"]=cell{stone="st-actorimpulse"}
  9. cells["h"]=cell{parent=cells[" "],item="it-hollow"}
  10. cells["x"]=cell{actor={"ac-blackball",{player=0}}}
  11.  
  12. level = {
  13. --  01234567890123456789
  14.    "#b################b#",--00     
  15.    "b                  b",--01     
  16.    "#  h               #",--02     
  17.    "#                  #",--03     
  18.    "#                  #",--04     
  19.    "#                  #",--05     
  20.    "# x    h           #",--06     
  21.    "#                  #",--07     
  22.    "#        h         #",--08     
  23.    "#                  #",--09     
  24.    "#            h     #",--10     
  25.    "b                  b",--11     
  26.    "#b################b#" --12     
  27. }   
  28. set_default_parent(cells[" "])
  29.  
  30. create_world_by_map(level,cells)
  31.  
  32. local top=set_actor("ac-top", 9,5, {mouseforce=0, range=20, force=-10})
  33. local ac1=set_actor("ac-whiteball-small", 9,6, {player=1, mouseforce=1, controllers=1})
  34. local ac2=set_actor("ac-whiteball-small", 9,7, {player=1, mouseforce=1, controllers=1})
  35. local ac3=set_actor("ac-whiteball-small", 9,8, {player=1, mouseforce=1, controllers=1})
  36. local ac4=set_actor("ac-whiteball-small", 9,9, {player=1, mouseforce=1, controllers=1})
  37. local rotor=set_actor("ac-rotor", 9,11, {mouseforce=2, range=10, force=-10})
  38.  
  39. AddRubberBand(top, ac1, 6, 1)
  40. AddRubberBand(ac1, ac2, 6, 1)
  41. AddRubberBand(ac2, ac3, 6, 1)
  42. AddRubberBand(ac3, ac4, 6, 1)                               
  43. AddRubberBand(ac4, rotor, 3, 5)                                                                
  44.                                  
  45.