home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global playerViewPoint, playerData, blasterData, enemyData
- harvestInput()
- if playerData[2][2] <= 1000 then
- repeat with wSection = 1 to 10
- appendmap()
- end repeat
- end if
- playerViewPoint = point(0, playerData[2][2] - 275)
- moveterrain()
- moveplayer()
- moveEnemy()
- moveParticles()
- if blasterData[1] = 1 then
- blasterData[4] = blasterData[4] - 1
- if blasterData[4] <= 0 then
- blasterData[1] = 0
- else
- blasterData[2] = blasterData[2] + blasterData[3]
- aimTHIS = findAngle(point(0, 0), blasterData[3])
- addparticle(blasterData[2], aimTHIS, 4)
- end if
- end if
- if blasterData[1] = 1 then
- repeat with wEnemy = 1 to count(enemyData)
- if enemyData[wEnemy][1] = 1 then
- if [0, 0, 1, 1, 1, 1][enemyData[wEnemy][2]] = 1 then
- if findDistance(enemyData[wEnemy][3], blasterData[2]) <= 25 then
- enemyData[wEnemy][6] = enemyData[wEnemy][6] + 150
- blasterData[1] = 0
- rMove = random(72)
- repeat with wTurn = 1 to 3
- locY = cos((rMove + (wTurn * 120)) * PI / 180) * 20
- locX = sin((rMove + (wTurn * 120)) * PI / 180) * -20
- addparticle(blasterData[2] + point(locX, locY), 0, 1)
- end repeat
- addparticle(blasterData[2], 0, 1)
- end if
- end if
- end if
- end repeat
- end if
- set the height of sprite 510 to integer(playerData[5] / 1000.0 * 40)
- go(the frame)
- end
-