home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global playerViewPoint, shipData, specialPlayerStats, gFrameTimer, scanRotation, scanMod, bgAnchorRecord, totalEnemyShips, levelCompleteDelay, playerlevel
- if (gFrameTimer + 1) < the ticks then
- gFrameTimer = the ticks
- playerViewPoint = shipData[1][4][1] - point(2900, 2200)
- moveShips()
- moveBulletData()
- runStarField()
- moveParticles()
- movePowerups()
- scanRotation = scanRotation - 4
- if scanRotation < 0 then
- scanRotation = 360
- end if
- sprite(781).rotation = scanRotation
- updateMiniMap()
- if specialPlayerStats[5] > 0 then
- specialPlayerStats[5] = specialPlayerStats[5] - 1
- if specialPlayerStats[5] > 0 then
- set the width of sprite 777 to 38 - integer((1000 - specialPlayerStats[5]) / 1000.0 * 38)
- else
- set the width of sprite 777 to 0
- member("Mega Cannon Status").text = "Ready"
- end if
- end if
- anchorPoint = point(0, 0) - (playerViewPoint / 100)
- repeat with wX = 1 to 2
- repeat while anchorPoint[wX] < 1
- anchorPoint[wX] = anchorPoint[wX] + [580, 440][wX]
- end repeat
- end repeat
- anchorPoint[1] = anchorPoint[1] mod 580
- anchorPoint[2] = anchorPoint[2] mod 440
- if bgAnchorRecord <> anchorPoint then
- set the loc of sprite 1 to anchorPoint
- set the loc of sprite 2 to anchorPoint + point(-580, 0)
- set the loc of sprite 3 to anchorPoint + point(0, -440)
- set the loc of sprite 4 to anchorPoint + point(-580, -440)
- bgAnchorRecord = anchorPoint
- end if
- if shipData[1][1] = 0 then
- if levelCompleteDelay > 0 then
- levelCompleteDelay = levelCompleteDelay - 1
- go(the frame)
- else
- go(30)
- end if
- else
- if totalEnemyShips = 0 then
- if levelCompleteDelay > 0 then
- levelCompleteDelay = levelCompleteDelay - 1
- go(the frame)
- else
- if playerlevel >= 4 then
- go(25)
- else
- go(20)
- end if
- end if
- else
- go(the frame)
- end if
- end if
- else
- go(the frame)
- end if
- end
-