home *** CD-ROM | disk | FTP | other *** search
- global mouseinput, playerLocData, playerPower, playerScore, gameOverDelay, spawnDelay, tickRecord, updatepowerDisplay
-
- on exitFrame me
- global messageData
- if the ticks > (tickRecord + 0.5) then
- tickRecord = the ticks
- harvestInput()
- moveplayer()
- moveRescueThings()
- drawChain()
- moveFallingThings()
- moveParticles()
- if spawnDelay > 0 then
- spawnDelay = spawnDelay - 1
- else
- spawnDelay = 130
- addFallingThing(point(random(500) + 40, -25))
- end if
- if updatepowerDisplay = 1 then
- member("Score Display").text = string(playerScore)
- member("Power Display").text = string(playerPower)
- updatepowerDisplay = 0
- end if
- if messageData[1] <> 0 then
- messageData[3] = messageData[3] + 1
- if messageData[3] > 60 then
- set the loc of sprite 790 to point(-100, -100)
- messageData[1] = 0
- else
- set the member of sprite 790 to ["Speed Text Message", "Power Text Message"][messageData[1]]
- set the loc of sprite 790 to messageData[2] - point(0, messageData[3])
- end if
- end if
- end if
- if playerPower > 0 then
- go(the frame)
- else
- if gameOverDelay > 0 then
- gameOverDelay = gameOverDelay - 1
- go(the frame)
- else
- go(15)
- end if
- end if
- sprite(4).locZ = 50
- end
-
- on mouseDown
- mouseinput = 1
- end
-
- on mouseUp
- mouseinput = 0
- end
-