home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / AntiGravityBall.dxr / 00001.ls next >
Encoding:
Text File  |  2002-01-31  |  1.7 KB  |  55 lines

  1. on exitFrame me
  2.   global playerViewpoint, anchorViewPoint, marbleAngle, terrainData_Type, playerlevel, playerLives, currentTileMode, frameRecord, tickRecord, gFrameTimer, playerloc, levelScore, bgPulseCounter, bgPulseTrayer, distanceRolled, jumpPower, airSpeed, playerScore, curentSpeed, deadStatus, fallDelay, activeCheckpoint, checkpointList, respawnList, timerRecord
  3.   currentTileMode = 0
  4.   playerLives = 5
  5.   loadLevel(playerlevel)
  6.   initializeterrainSet()
  7.   initializeConstants()
  8.   initializeScreen()
  9.   set the member of sprite 28 to "Digit " & string(playerlevel)
  10.   frameRecord = 0
  11.   tickRecord = the ticks
  12.   gFrameTimer = the ticks
  13.   playerViewpoint = point(0, (count(terrainData_Type) * 50) - 600)
  14.   playerloc = point(125, (count(terrainData_Type) * 50) - 250)
  15.   sprite(10).locZ = 210
  16.   sprite(11).locZ = 211
  17.   repeat with wLife = 21 to 25
  18.     sprite(wLife).locZ = 999
  19.   end repeat
  20.   marbleAngle = 0
  21.   initializeScreen()
  22.   bgPulseCounter = 0
  23.   bgPulseTrayer = []
  24.   repeat with wRow = 1 to 5
  25.     add(bgPulseTrayer, random(3) + 2)
  26.   end repeat
  27.   commandList = []
  28.   distanceRolled = 0
  29.   jumpPower = 0
  30.   airSpeed = point(0, 0)
  31.   curentSpeed = 0
  32.   playerScore = 0
  33.   deadStatus = 0
  34.   fallDelay = 100
  35.   activeCheckpoint = 1
  36.   case playerlevel of
  37.     1:
  38.       respawnList = [point(3, 315), point(3, 197), point(3, 103)]
  39.     2:
  40.       respawnList = [point(3, 415), point(3, 310), point(3, 220), point(3, 118)]
  41.     3:
  42.       respawnList = [point(3, 492), point(3, 380), point(3, 228), point(3, 145)]
  43.   end case
  44.   updateScoreDisplay(0)
  45.   timerRecord = the ticks
  46.   repeat with wLife = 1 to 5
  47.     if playerLives >= wLife then
  48.       sprite(20 + wLife).visible = 1
  49.       next repeat
  50.     end if
  51.     sprite(20 + wLife).visible = 0
  52.   end repeat
  53.   gameOverDelay = 0
  54. end
  55.