home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global maximumClouds, cloudEffectSO, maximumDrops, dropEffectSO, monsterData, monasterInitialLocs, monsterhitRange, totalValidTargets, playerScore, levelTime
- initializeConstants()
- initializeDrops()
- initializeBeams()
- initializeClouds()
- liqPrefix = "Water"
- minPool = cloudEffectSO + 1
- maxPool = cloudEffectSO + maximumClouds
- minDrop = dropEffectSO + 1
- maxDrop = dropEffectSO + maximumDrops
- repeat with whichP = minPool to maxPool
- set the member of sprite whichP to liqPrefix & " Pool"
- end repeat
- repeat with whichP = minDrop to maxDrop
- set the member of sprite whichP to liqPrefix & " Drop"
- end repeat
- repeat with wSp = 7 to 10
- sprite(wSp).locZ = the top of sprite wSp
- end repeat
- repeat with wSp = 11 to 22
- sprite(wSp).locZ = the bottom of sprite wSp - 25
- end repeat
- sprite(131).locZ = 999
- monsterData = []
- repeat with whichMonster = 1 to 12
- monsterBit = [0, 1, -75, the loc of sprite (10 + whichMonster), 0, 0]
- add(monsterData, monsterBit)
- end repeat
- monasterInitialLocs = []
- repeat with whichLoc = 1 to 12
- add(monasterInitialLocs, the loc of sprite (whichLoc + 10))
- end repeat
- monsterhitRange = []
- repeat with whichLoc = 1 to 12
- hitRect = rect(0, 0, 0, 0)
- hitRect.left = the left of sprite (whichLoc + 10)
- hitRect.right = the right of sprite (whichLoc + 10)
- hitRect.top = the top of sprite (whichLoc + 10) + 25
- hitRect.bottom = the bottom of sprite (whichLoc + 10) + 25
- add(monsterhitRange, hitRect)
- end repeat
- repeat with whichMonster = 11 to 21
- set the locV of sprite whichMonster to 600
- end repeat
- totalValidTargets = 0
- playerScore = [0, 0, 0]
- levelTime = [1, 0, 60]
- member("Level Score").text = "0"
- if levelTime[2] < 10 then
- member("Level Time").text = string(levelTime[1]) & ":0" & string(levelTime[2])
- else
- member("Level Time").text = string(levelTime[1]) & ":" & string(levelTime[2])
- end if
- member("Level number").text = "L1"
- member("Level Score").text = "0"
- end
-