home *** CD-ROM | disk | FTP | other *** search
- global gText, gGame, gMovieList, gIsDone, gThemeSound
-
- on exitFrame
- set the timer to 0
- set gIsDone to 0
- repeat while not gIsDone
- if not soundBusy(1) then
- sound playFile 1, gThemeSound
- end if
- if the timer >= 6 then
- if the mouseDown then
- Shoot(gGame)
- end if
- play frame gText
- play frame gGame
- set the timer to 0
- end if
- set h to the mouseH
- if h < 0 then
- set h to 0
- else
- if h > 640 then
- set h to 640
- end if
- end if
- set the locH of sprite 2 to h
- if the commandDown and ((the keyPressed = "Q") or (the keyPressed = "Q")) then
- set gIsDone to 1
- Dispose(gSoundPlay)
- if objectp(gMovieList) then
- QuitApp(gMovieList)
- else
- quit()
- end if
- end if
- updateStage()
- end repeat
- end
-