home *** CD-ROM | disk | FTP | other *** search
/ Car Screensaver - Toyota / TOYOTA.iso / mjparty / qh_demo.exe / DEMOHNT3.DXR / 00194.ls < prev    next >
Encoding:
Text File  |  1996-08-09  |  1.5 KB  |  71 lines

  1. on exitFrame
  2.   global gnum1
  3.   repeat while gnum1 <> 25
  4.     looph()
  5.   end repeat
  6. end
  7.  
  8. on looph
  9.   global gwlist1, gnum1
  10.   set gnum1 to gnum1 + 1
  11.   set two to gnum1 / 10
  12.   set the castNum of sprite 6 to two + 201
  13.   set the castNum of sprite 7 to gnum1 - (two * 10) + 201
  14.   set the locV of sprite 10 to 265
  15.   set ca to (getAt(gwlist1, gnum1 - 21) * 4) + 517
  16.   set the castNum of sprite 10 to ca
  17.   set alist to [random(3)]
  18.   repeat with n = 1 to 2
  19.     set num to random(3)
  20.     if getOne(alist, num) = 0 then
  21.       append(alist, num)
  22.       next repeat
  23.     end if
  24.     set n to n - 1
  25.   end repeat
  26.   repeat with n = 11 to 13
  27.     set the locH of sprite n to 95
  28.     set the castNum of sprite n to ca + getAt(alist, n - 10)
  29.   end repeat
  30.   waith(30)
  31.   repeat with n = 1 to 3
  32.     repeat with c = 0 to 2
  33.       set the locV of sprite 9 to 333 + (c * 33)
  34.       waith(5)
  35.     end repeat
  36.   end repeat
  37.   if the timer > 120 then
  38.     timeh()
  39.   end if
  40.   set num to random(3)
  41.   repeat with c = 0 to 2
  42.     if c = num then
  43.       exit repeat
  44.     else
  45.       set the locV of sprite 9 to 333 + (c * 33)
  46.     end if
  47.     waith(5)
  48.   end repeat
  49.   set the castNum of sprite 9 to 198
  50.   waith(20)
  51.   set the castNum of sprite 9 to 197
  52.   set the locV of sprite 9 to 496
  53. end
  54.  
  55. on waith num
  56.   updateStage()
  57.   set num to the timer + num
  58.   repeat while the timer < num
  59.     if the timer > 1200 then
  60.       timeh()
  61.     end if
  62.   end repeat
  63. end
  64.  
  65. on timeh
  66.   global gtime1
  67.   set gtime1 to gtime1 + 1
  68.   set the castNum of sprite 8 to gtime1
  69.   startTimer()
  70. end
  71.