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

  1. -- Sven Siggelkow 2003
  2.  
  3. dofile(enigma.FindDataFile("levels/ant.lua"))
  4. cells={}
  5.  
  6. cells[" "]=cell{floor="fl-leaves"}
  7. cells["b"]=cell{floor="fl-gravel"}
  8. cells["#"]=cell{stone="st-rock1"}
  9. cells["h"]=cell{parent=cells["b"],item="it-hollow"}
  10. cells["+"]=cell{stone="st-chargeplus"}
  11. cells["-"]=cell{stone="st-chargeminus"}
  12. cells["0"]=cell{stone="st-chargezero"}
  13.  
  14. level = {
  15.    "#########-########0#",     
  16.    "#                  #",     
  17.    "#                  #",     
  18.    "#                  #",     
  19.    "#      bhhhb       #",     
  20.    "#      hbbbh       #",     
  21.    "+      hb+bh       +",     
  22.    "#      hbbbh       #",     
  23.    "#      bhhhb       #",     
  24.    "#                  #",     
  25.    "#                  #",     
  26.    "#                  #",     
  27.    "#0#######-##########"      
  28. }   
  29. set_default_parent(cells[" "])
  30.     
  31. create_world_by_map(level,cells)
  32.  
  33. local ac1=set_actor("ac-whiteball-small", 6,1, {player=0, mouseforce=1})
  34. local ac2=set_actor("ac-whiteball-small", 8,9, {player=0, mouseforce=1})                                          
  35. local ac3=set_actor("ac-whiteball-small", 5,3, {player=0, mouseforce=1})                                          
  36. local ac4=set_actor("ac-whiteball-small", 8,8, {player=0, mouseforce=1})                                          
  37. local ac5=set_actor("ac-whiteball-small", 10,5, {player=0, mouseforce=1})
  38. local ac6=set_actor("ac-whiteball-small", 8,6, {player=0, mouseforce=1})
  39. local ac7=set_actor("ac-whiteball-small", 9,7, {player=0, mouseforce=1})
  40. local ac8=set_actor("ac-whiteball-small", 8,4, {player=0, mouseforce=1})
  41. local ac9=set_actor("ac-whiteball-small", 8,2, {player=0, mouseforce=1})
  42. local ac10=set_actor("ac-whiteball-small", 9,5, {player=0, mouseforce=1})
  43. local ac11=set_actor("ac-whiteball-small", 9,4, {player=0, mouseforce=1})
  44. local ac12=set_actor("ac-whiteball-small", 9,3, {player=0, mouseforce=1})
  45.  
  46.                                           
  47. AddRubberBand(ac1, ac2, 6, 1)
  48. AddRubberBand(ac2, ac3, 6, 1)
  49. AddRubberBand(ac3, ac4, 6, 1)    
  50. AddRubberBand(ac4, ac5, 6, 1)    
  51. AddRubberBand(ac5, ac6, 6, 1)
  52. AddRubberBand(ac6, ac7, 6, 1)
  53. AddRubberBand(ac7, ac8, 6, 1)    
  54. AddRubberBand(ac8, ac9, 6, 1) 
  55. AddRubberBand(ac9, ac10, 6, 1)
  56. AddRubberBand(ac10, ac11, 6, 1)
  57. AddRubberBand(ac11, ac12, 6, 1)    
  58. AddRubberBand(ac12, ac1, 6, 1) 
  59.                                
  60.                                  
  61.                                  
  62.