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

  1. levelw=80
  2. levelh=40
  3.  
  4. create_world( levelw, levelh)
  5.  
  6. fill_floor("fl-abyss", 0,0,levelw,levelh)
  7.  
  8. function renderLine( line, pattern)
  9.     for i=1, strlen(pattern) do
  10.         local c = strsub( pattern, i, i)
  11.         if c =="#" then
  12.             set_stone( "st-death", i-1, line)
  13.         elseif c == "o" then
  14.             oxyd( i-1, line)
  15.                 elseif c == "!" then
  16.             abyss(i-1,line)
  17. --            fill_floor("fl-water", i-1,line, 1,1)
  18.         elseif c=="z" then
  19.             set_actor("ac-blackball", i-.5,line+.5, {player=0})
  20.             fill_floor("fl-leaves", i-1,line,1,1)
  21.         elseif c==" " then
  22.                 abyss(i-1,line)
  23.         elseif c == "s" then
  24.             set_item("it-spring1",i-1,line)
  25.             fill_floor("fl-leaves", i-1,line,1,1)
  26.         elseif c=="+" then
  27.             set_stone( "st-wood", i-1, line)
  28.         elseif c=="*" then
  29.             set_stone( "st-greenbrown", i-1, line)
  30.         elseif c=="H" then
  31.             set_stone("st-stone_break", i-1,line)
  32.         elseif c=="9" then
  33.             set_stone( "st-floppy", i-1,line,{action="openclose",target="unimportantdoor"})
  34.         elseif c=="a" then
  35.             fill_floor("fl-leaves", i-1,line,1,1)
  36.         elseif c=="b" then
  37.             fill_floor("fl-sand", i-1,line,1,1)
  38.         elseif c=="c" then
  39.             fill_floor("fl-bluegreen", i-1,line,1,1)
  40.         elseif c=="d" then
  41.             fill_floor("fl-inverse", i-1,line, 1,1)
  42.         elseif c=="e" then
  43.             fill_floor("fl-ice_001", i-1,line, 1,1)
  44.         elseif c=="f" then
  45.             fill_floor("fl-marble", i-1,line, 1,1)
  46.         elseif c=="g" then
  47.             fill_floor("fl-wood", i-1,line, 1,1)
  48.         elseif c=="h" then
  49.             fill_floor("fl-hay", i-1,line, 1,1)
  50.         elseif c=="i" then
  51.             fill_floor("fl-dunes", i-1,line, 1,1)
  52.         elseif c=="j" then
  53.             fill_floor("fl-brick", i-1,line, 1,1)
  54.         elseif c=="k" then
  55.             fill_floor("fl-gray", i-1,line, 1,1)
  56.         elseif c=="l" then
  57.             fill_floor("fl-plank", i-1,line, 1,1)
  58.         elseif c=="m" then
  59.             fill_floor("fl-metal",i-1,line, 1,1)
  60.         elseif c=="n" then
  61.             fill_floor("fl-normal", i-1,line, 1,1)
  62.         elseif c=="O" then
  63.             fill_floor("fl-rough", i-1,line, 1,1)
  64.         elseif c=="p" then
  65.             fill_floor("fl-space", i-1,line, 1,1)
  66.         elseif c=="q" then
  67.             fill_floor("fl-bluegreenx", i-1,line, 1,1)
  68.         elseif c=="r" then
  69.             fill_floor("fl-leaves", i-1,line, 1,1)
  70.             set_stone("st-chameleon", i-1,line)
  71.         elseif c=="S" then
  72.             fill_floor("fl-floor_001", i-1,line, 1,1)    
  73.         end
  74.     end    
  75. end
  76.  
  77. -- Floor:  " "
  78. -- Border: "#"
  79. -- Oxyd:   "o"
  80.                    
  81. renderLine(00,"##########################################################")
  82. renderLine(01,"#            c   #       jjj              #           ff #")
  83. renderLine(02,"# aaaa bb  ccccc #     jjj j   kkkk   iii #   gg     fff #")
  84. renderLine(03,"# azsa bbb ccccc #   jjj jjj   kk k   iii # gggg    ffff #")
  85. renderLine(04,"# aaaa     ccc c #   j jjj j   kkkk   ii  #   ggg    fff #")
  86. renderLine(05,"#                #   jjj jjj   kkk           d        ff #")
  87. renderLine(06,"######    ddd     #    jjj j    k      h    ddd          #")
  88. renderLine(07,"#     ee   ddd    #      jjj           hhh ddddd  #    p #")
  89. renderLine(08,"#fff eeee dddd    #                         ddd   #   pp #")
  90. renderLine(09,"#fff eeee  ddd    #   ll       ##########    d    #   pp #")
  91. renderLine(10,"#f   eee      #####   lllll    #         #        #   pp #")
  92. renderLine(11,"#ff  eeee  ###    #   olllo   ##  OOOOOO  #####          #")
  93. renderLine(12,"#fff      #   j    #        ## #  OOOOOO                 #")
  94. renderLine(13,"#       ##  jjj     #######*  r * OO  OO  jjjjjjj   # dd #")
  95. renderLine(14,"#ggg   #  jjjjj   #    kkk rrrrr* OO  OO  jjjjj     # dd #")
  96. renderLine(15,"#ggg  #    jjjjj #   kkkkk rrrrr* OOOOOO   jjj  aa  # dd #")
  97. renderLine(16,"#gg  # OO   jjjj #    kkkk rrrrr* OOOOOO   j    aaa # dd #")
  98. renderLine(17,"#gg # OOOO    jj                        e      aaaa #    #")
  99. renderLine(18,"#gg   OOOO  # jj       qqq #SSSSS#  eeeeee        a #    #")
  100. renderLine(19,"#      OOO #    #     qqqq #SSSSS# eeeeee #              #")
  101. renderLine(20,"#      OO  #     pppp  qqq # SSSS#  eeeee #  bbbbb   ccc #")
  102. renderLine(21,"#mmm      # iiii pppp  qqqq#l  S# nn      #  bbbb   cccc #")
  103. renderLine(22,"#mmmmmmm # iiiii pppp  qqq #lll nnnnnn    #    bb   cccc #")
  104. renderLine(23,"#mmmmmm  #  iii           # lll nnnn      #    bb  ccccc #")
  105. renderLine(24,"##########################################################")
  106.  
  107. oxyd_shuffle()
  108.  
  109. --through=0
  110. --function funcc()
  111. --    if through==1 then
  112. --    through=0
  113. --    end
  114. --    if through==0 then
  115. --    enigma.SendMessage(door1, "openclose", nil)
  116. --    enigma.SendMessage(door2, "openclose", nil)
  117. --    enigma.SendMessage(door3, "openclose", nil)
  118. --    enigma.SendMessage(bridge1, "openclose", nil)
  119. --    enigma.SendMessage(bridge2, "openclose", nil)
  120. --    end
  121. --    through=through+1
  122. --end