home *** CD-ROM | disk | FTP | other *** search
- global gPeiceSelected, gPeiceX, gPeiceY, gLaserList, gNumBlocks, gLevelNum, gBlockArray, gLaserArray, gColorArray, gDirectionArray, gLockedArray, gOtherPeiceSelected, gStupidCounter, gScore, gRemaindingTime, gLevelSeconds
-
- on prepareMovie
- gStupidCounter = 0
- initArrays()
- gLevelNum = 0
- gPeiceX = 0
- gPeiceY = 0
- end
-
- on initArrays
- gScore = 0
- gOtherPeiceSelected = 0
- gPeiceSelected = 0
- gLaserList = []
- gBlockArray = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]
- gLaserArray = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]
- gColorArray = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]
- gLockedArray = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]
- gDirectionArray = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]
- end
-
- on diplayCurrentLevel level
- member("CurrentLevel").text = string(gLevelNum)
- end
-
- on displayTime
- if (gRemaindingTime / 60) < 10 then
- timeCount = "0" & string(integer(gRemaindingTime / 60))
- else
- timeCount = string(integer(gRemaindingTime / 60))
- end if
- if (gRemaindingTime mod 60) < 10 then
- timeCount = timeCount && ":" && "0" & string(gRemaindingTime mod 60)
- else
- timeCount = timeCount && ":" && string(gRemaindingTime mod 60)
- end if
- member("LevelTimeDisplay").text = timeCount
- end
-