home *** CD-ROM | disk | FTP | other *** search
/ A Virtual Reality Guide to Texas / CD.iso / texdata / arcextra / tbits.dir / 00015.ls < prev    next >
Encoding:
Text File  |  1998-06-23  |  919 b   |  39 lines

  1. on comparestuff
  2.   global firstshape, lastshape, firstbox, lastbox, firstclick, lastClick, gamecount
  3.   put firstshape
  4.   put lastshape
  5.   if firstshape = lastshape then
  6.     set the visible of sprite (firstbox - 17) to 0
  7.     set the visible of sprite (lastbox - 17) to 0
  8.     set gamecount to gamecount + 1
  9.     if gamecount = 8 then
  10.       repeat with i = 15 to 47
  11.         if i < 19 then
  12.           set the visible of sprite i to 0
  13.         else
  14.           set the visible of sprite i to 1
  15.         end if
  16.         puppetSprite(i, 0)
  17.       end repeat
  18.       gostars()
  19.     end if
  20.     exit
  21.   else
  22.     stall()
  23.     set the visible of sprite firstbox to 1
  24.     set the visible of sprite lastbox to 1
  25.   end if
  26.   set lastClick to 0
  27.   set firstclick to 1
  28. end
  29.  
  30. on stall
  31.   global mH, mV
  32.   set x to the timer + 100
  33.   repeat while x > the timer
  34.     if (the mouseH <> mH) or (the mouseV <> mV) then
  35.       exit repeat
  36.     end if
  37.   end repeat
  38. end
  39.