home *** CD-ROM | disk | FTP | other *** search
/ Seeker / Seeker.iso / files_w / 5balls.dir / 00045.ls < prev    next >
Encoding:
Text File  |  1994-12-05  |  734 b   |  31 lines

  1. on exitFrame
  2.   global d, moveend, check
  3.   set nt to ticks()
  4.   repeat with i = 1 to 5
  5.     if getAt(d, i) <> 0 then
  6.       moveball(i)
  7.     end if
  8.   end repeat
  9.   if the castNum of sprite 12 = 0 then
  10.     go("over")
  11.   else
  12.     if count(holeout) >= 4 then
  13.       go("clear")
  14.     else
  15.       if moveend = 1 then
  16.         repeat with i = 1 to 4
  17.           clash(i)
  18.         end repeat
  19.         set moveend to 0
  20.         wait(3 - (ticks() - nt))
  21.         go(#loop)
  22.       else
  23.         set check to [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]
  24.         set the locH of sprite 13 to the locH of sprite 12
  25.         set the locV of sprite 13 to the locV of sprite 12
  26.         go(3)
  27.       end if
  28.     end if
  29.   end if
  30. end
  31.