home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / RoboticInvaders.dxr / 00108.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  542 b   |  17 lines

  1. on exitFrame me
  2.   global playerScore, totalScore, playerData, accuracyRating
  3.   if accuracyRating[2] > 0 then
  4.     accBonus = integer(1000 * accuracyRating[1] / accuracyRating[2])
  5.   else
  6.     accBonus = 0
  7.   end if
  8.   totalScore = totalScore + playerScore + accBonus
  9.   member("Accuracy Bonus Tally").text = string(accBonus)
  10.   member("Level Score Tally").text = string(playerScore)
  11.   member("Total Score Tally").text = string(totalScore)
  12.   repeat with whichDisp = 180 to 200
  13.     sprite(whichDisp).locZ = 999
  14.   end repeat
  15.   playSound("Lose", 1)
  16. end
  17.