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

  1. on exitFrame me
  2.   global win, points
  3.   if (the timer / 60) <= 60 then
  4.     points = 2000
  5.   end if
  6.   if ((the timer / 60) <= 120) and ((the timer / 60) > 60) then
  7.     points = 1500
  8.   end if
  9.   if ((the timer / 60) <= 180) and ((the timer / 60) > 120) then
  10.     points = 1000
  11.   end if
  12.   if ((the timer / 60) <= 260) and ((the timer / 60) > 180) then
  13.     points = 500
  14.   end if
  15.   if ((the timer / 60) <= 320) and ((the timer / 60) > 260) then
  16.     points = 250
  17.   end if
  18.   if ((the timer / 60) <= 380) and ((the timer / 60) > 320) then
  19.     points = 250
  20.   end if
  21.   if (the timer / 60) > 380 then
  22.     points = 100
  23.   end if
  24.   if (the timer / 60) > 460 then
  25.     points = 25
  26.   end if
  27.   win = "yes"
  28.   if win = "yes" then
  29.     puppetSound(3, "win")
  30.     member("youwin").text = "You Win!!!"
  31.     member("points").text = "Total Score:" & string(points) & "pts"
  32.   else
  33.     puppetSound(3, "lose")
  34.     member("youwin").text = "Give it another Try!"
  35.     member("points").text = "Total Score:" & string(points) & "pts"
  36.   end if
  37. end
  38.