home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 127 / dpcs0998.iso / Internet / netobs / Install.exe / t2.z / BREAKOUT.DCR / 00012_pongInitBrickList.ls < prev    next >
Encoding:
Text File  |  1998-01-20  |  498 b   |  21 lines

  1. on pongInitBrickList piRows, piColumns
  2.   global glBrickList, giColumns
  3.   set giColumns to piColumns
  4.   set llOneRow to []
  5.   repeat with counter = 1 to piColumns
  6.     append(llOneRow, 1)
  7.   end repeat
  8.   set glBrickList to [llOneRow]
  9.   repeat with counter = 2 to piRows
  10.     append(glBrickList, listDeReference(llOneRow))
  11.   end repeat
  12. end
  13.  
  14. on listDeReference plList
  15.   set returnList to []
  16.   repeat with i = 1 to count(plList)
  17.     append(returnList, getAt(plList, i))
  18.   end repeat
  19.   return returnList
  20. end
  21.