home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / SlightOHand.dxr / graphics_14_spinn.ls < prev    next >
Encoding:
Text File  |  2002-01-31  |  628 b   |  36 lines

  1. property pSprite, spriteNum
  2. global gSpinCup, gMisses
  3.  
  4. on beginSprite me
  5.   pSprite = sprite(spriteNum)
  6.   pSprite.pause()
  7.   gSpinCup.add(pSprite)
  8. end
  9.  
  10. on krazyKool me
  11.   pSprite.resume()
  12.   s = timeout("asss").new(1, #stopme, me)
  13. end
  14.  
  15. on stopme me
  16.   timeout("asss").forget()
  17.   repeat with i in [1, 3, 5, 7, 9, 11]
  18.     pSprite.member = member("bowl" & i)
  19.     s = the ticks + 5
  20.     repeat while the ticks < s
  21.       updateStage()
  22.     end repeat
  23.   end repeat
  24.   if gMisses = 3 then
  25.     s = the ticks + 10
  26.     repeat while the ticks < s
  27.       updateStage()
  28.     end repeat
  29.     gameOver()
  30.   end if
  31. end
  32.  
  33. on gameOver me
  34.   go("game over")
  35. end
  36.