home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gameControl, hero, gameSpeed
- currentRate = the timer
- startTimer()
- if currentRate < gameSpeed then
- puppetTempo(the frameTempo - 1)
- else
- if (currentRate > gameSpeed) and (the frameTempo < 80) then
- puppetTempo(the frameTempo + 1)
- end if
- end if
- updateGame(gameControl)
- case gameControl.action of
- "levelDone":
- puppetTempo(15)
- if gameControl.levelNum = 3 then
- go("pub")
- else
- go("garage")
- end if
- "dead":
- puppetTempo(15)
- go("deadUte")
- otherwise:
- go(the frame)
- end case
- end
-