home *** CD-ROM | disk | FTP | other *** search
- global gLevel, gTime, gScore, gTempScore, g1SecAhead, gSheepCount
-
- on mouseEnter
- sprite(151).member = "continueOver"
- puppetSound(1, "ButtonOver")
- end
-
- on mouseLeave
- sprite(151).member = "continueNorm"
- puppetSound(1, "ButtonOver")
- end
-
- on beginSprite
- gTempScore = 200 + (gLevel * 600) - (the timer / 60 * 25)
- if gTempScore < 200 then
- gTempScore = 200
- end if
- gScore = gScore + gTempScore
- member("ScoreText").text = string(gScore)
- member("ScoreTextEndScreen").text = "Level Score:" && string(gScore)
- end
-
- on mouseUp me
- puppetSound(2, "reset")
- gSheepCount = 0
- member("SheepCountText").text = string(gSheepCount) && "Sheep Captured"
- g1SecAhead = 0
- startTimer()
- gLevel = gLevel + 1
- member("LevelText").text = "Level" && gLevel
- if gLevel = 2 then
- go(15)
- else
- if gLevel = 3 then
- go(22)
- else
- if gLevel = 4 then
- go(28)
- else
- if gLevel = 5 then
- go(35)
- else
- if gLevel = 6 then
- go(42)
- else
- if gLevel = 7 then
- go(51)
- end if
- end if
- end if
- end if
- end if
- end if
- end
-