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

  1. on exitFrame me
  2.   global levelScore, totalScore, playerData, bombAccuracyStats
  3.   if (bombAccuracyStats[1] <> 0) and (bombAccuracyStats <> 0) then
  4.     accBonus = integer(500 * bombAccuracyStats[2] / bombAccuracyStats[1])
  5.   else
  6.     accBonus = 0
  7.   end if
  8.   totalScore = totalScore + levelScore + accBonus
  9.   member("Accuracy Bonus Tally").text = string(accBonus)
  10.   member("Level Score Tally").text = string(levelScore)
  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("Win", 1)
  16. end
  17.