home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / LostSheep.dxr / 00023_continueButton.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  1.1 KB  |  55 lines

  1. global gLevel, gTime, gScore, gTempScore, g1SecAhead, gSheepCount
  2.  
  3. on mouseEnter
  4.   sprite(151).member = "continueOver"
  5.   puppetSound(1, "ButtonOver")
  6. end
  7.  
  8. on mouseLeave
  9.   sprite(151).member = "continueNorm"
  10.   puppetSound(1, "ButtonOver")
  11. end
  12.  
  13. on beginSprite
  14.   gTempScore = 200 + (gLevel * 600) - (the timer / 60 * 25)
  15.   if gTempScore < 200 then
  16.     gTempScore = 200
  17.   end if
  18.   gScore = gScore + gTempScore
  19.   member("ScoreText").text = string(gScore)
  20.   member("ScoreTextEndScreen").text = "Level Score:" && string(gScore)
  21. end
  22.  
  23. on mouseUp me
  24.   puppetSound(2, "reset")
  25.   gSheepCount = 0
  26.   member("SheepCountText").text = string(gSheepCount) && "Sheep Captured"
  27.   g1SecAhead = 0
  28.   startTimer()
  29.   gLevel = gLevel + 1
  30.   member("LevelText").text = "Level" && gLevel
  31.   if gLevel = 2 then
  32.     go(15)
  33.   else
  34.     if gLevel = 3 then
  35.       go(22)
  36.     else
  37.       if gLevel = 4 then
  38.         go(28)
  39.       else
  40.         if gLevel = 5 then
  41.           go(35)
  42.         else
  43.           if gLevel = 6 then
  44.             go(42)
  45.           else
  46.             if gLevel = 7 then
  47.               go(51)
  48.             end if
  49.           end if
  50.         end if
  51.       end if
  52.     end if
  53.   end if
  54. end
  55.