home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global anchorViewPoint, playerScore, locksOpened, maxLocks, lockedOffReigon, playerlevel, portalIndex, playerHealth, levelScore, playerLocData, playerViewpoint, animDelay, animNumber, monsterHitArea, playerInventory, viewChangerooRecord, screenTileSize, lastTimerCheck, totalFrames, playerSO
- initializeterrainSet()
- initializeConstants()
- initializeScreen()
- initializeMonsters()
- initializePickups()
- initializeplayer()
- init_ParticleConstants()
- init_Particles()
- playerHealth = 3
- levelScore = 0
- member("Score Display").text = string(playerScore)
- playerlevel = playerlevel + 1
- repeat with wBulb = 1 to 3
- if wBulb <= playerHealth then
- set the member of sprite (410 + wBulb) to "Health Bulb On"
- next repeat
- end if
- sprite(410 + wBulb).visible = "Health Bulb Off"
- end repeat
- locksOpened = 0
- case playerlevel of
- 1:
- maxLocks = 3
- lockedOffReigon = [47, 7, 48, 11]
- loadLevel(1)
- portalIndex = []
- curLoc = (point(50, 10.5) * 50) - 25
- add(portalIndex, rect(curLoc[1] - 25, curLoc[2] - 25, curLoc[1] + 25, curLoc[2] + 25))
- playerLocData[3] = point(780, 600)
- playerLocData[7] = #R
- playerViewpoint = point(485, 354)
- anchorViewPoint = point(485, 354)
- addPickup(2, 1, (point(15, 25) * 50) - 25, point(0, -5))
- addPickup(2, 1, (point(21, 3) * 50) - 25, point(0, -5))
- addPickup(2, 1, (point(46, 21) * 50) - 25, point(0, -5))
- addMonster(1, (point(21, 4) * 50) - 25, [point(5, 4), point(0, 120), point(0, 0), 0])
- addMonster(1, (point(21, 21) * 50) - 25, [point(5, 4), point(0, 120), point(0, 0), 0])
- addMonster(1, (point(45, 9) * 50) - 25, [point(5, 4), point(0, 120), point(0, 0), 0])
- addMonster(3, (point(21, 4) * 50) - 25, [point(3, 4), point(0, 120), point(0, 0), 0])
- addMonster(3, (point(45, 9) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(38, 19) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(5, 9) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- 2:
- maxLocks = 3
- lockedOffReigon = [39, 22, 40, 24]
- loadLevel(2)
- portalIndex = []
- curLoc = (point(37, 23.5) * 50) - 25
- add(portalIndex, rect(curLoc[1] - 25, curLoc[2] - 25, curLoc[1] + 25, curLoc[2] + 25))
- playerLocData[3] = point(2247, 1150)
- playerViewpoint = point(1782, 946)
- anchorViewPoint = point(1782, 946)
- addPickup(2, 1, (point(11, 10) * 50) - 25, point(0, -5))
- addPickup(2, 1, (point(30, 20) * 50) - 25, point(0, -5))
- addPickup(2, 1, (point(33, 31) * 50) - 25, point(0, -5))
- addMonster(1, (point(14, 14) * 50) - 25, [point(6, 0), point(0, 120), point(0, 0), 0])
- addMonster(2, (point(9, 28) * 50) - 25, [180, 3])
- addMonster(2, (point(11, 28) * 50) - 25, [180, 3])
- addMonster(2, (point(13, 28) * 50) - 25, [180, 3])
- addMonster(2, (point(11, 10) * 50) - 25, [0, 3])
- addMonster(2, (point(11, 10) * 50) - 25, [120, 3])
- addMonster(2, (point(11, 10) * 50) - 25, [240, 3])
- addMonster(4, (point(4, 13) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(17, 31) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(5, (point(4, 30) * 50) - 25, [240, point(0, 0), point(3, 5)])
- 3:
- maxLocks = 3
- lockedOffReigon = [66, 33, 72, 33]
- loadLevel(3)
- portalIndex = []
- curLoc = (point(37, 23.5) * 50) - 25
- add(portalIndex, rect(curLoc[1] - 25, curLoc[2] - 25, curLoc[1] + 25, curLoc[2] + 25))
- playerLocData[3] = (point(26, 35) * 50) - 25
- addMonster(5, (point(41, 16) * 50) - 25, [240, point(0, 0), point(3, 5)])
- addMonster(5, (point(26, 19) * 50) - 25, [240, point(0, 0), point(3, 5)])
- addMonster(2, (point(14, 5) * 50) - 25, [0, 5])
- addMonster(2, (point(14, 5) * 50) - 25, [0, -5])
- addMonster(2, (point(3, 34) * 50) - 25, [0, 5])
- addMonster(3, (point(84, 8) * 50) - 25, [point(3, 4), point(0, 120), point(0, 0), 0])
- addMonster(3, (point(88, 14) * 50) - 25, [point(3, 4), point(0, 120), point(0, 0), 0])
- addMonster(3, (point(94, 16) * 50) - 25, [point(3, 4), point(0, 120), point(0, 0), 0])
- addMonster(3, (point(103, 8) * 50) - 25, [point(3, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(13, 35) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(12, 30) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(11, 20) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(13, 13) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(32, 33) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addPickup(2, 1, (point(14, 5) * 50) - 25, point(0, -5))
- addPickup(2, 1, (point(28, 6) * 50) - 25, point(0, -5))
- addPickup(2, 1, (point(3, 34) * 50) - 25, point(0, -5))
- portalIndex = []
- curLoc = (point(86, 35.5) * 50) - 25
- add(portalIndex, rect(curLoc[1] - 25, curLoc[2] - 25, curLoc[1] + 25, curLoc[2] + 25))
- 4:
- maxLocks = 3
- lockedOffReigon = [66, 33, 72, 33]
- loadLevel(4)
- portalIndex = []
- curLoc = (point(37, 23.5) * 50) - 25
- add(portalIndex, rect(curLoc[1] - 25, curLoc[2] - 25, curLoc[1] + 25, curLoc[2] + 25))
- playerLocData[3] = (point(5, 6) * 50) - 25
- addMonster(5, (point(41, 16) * 50) - 25, [240, point(0, 0), point(3, 5)])
- addMonster(4, (point(46, 27) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addMonster(4, (point(42, 27) * 50) - 25, [point(4, 4), point(0, 120), point(0, 0), 0])
- addPickup(2, 1, (point(6, 2) * 50) - 25, point(0, -5))
- portalIndex = []
- curLoc = (point(86, 35.5) * 50) - 25
- add(portalIndex, rect(curLoc[1] - 25, curLoc[2] - 25, curLoc[1] + 25, curLoc[2] + 25))
- end case
- animDelay = 0
- animNumber = 1
- monsterHitArea = []
- member("Coin Display").text = string(playerInventory[1])
- member("Key Display").text = string(playerInventory[2])
- member("Lives Display").text = string(playerInventory[3])
- viewChangerooRecord = playerViewpoint / screenTileSize
- repositionTerrain()
- redrawTerrainPics()
- lastTimerCheck = the ticks
- totalFrames = 0
- sprite(playerSO).visible = 1
- go(10)
- end
-