home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global giPongPaddleChannel, giPongBrickChannel, glWallChannels, giPongSplashChannel, gbPaused, giPlayFieldLeftBoundary, giPlayFieldRightBoundary, giPlayFieldTopBoundary, giPlayFieldBottomBoundary, giHideOffset, giDebugOn, giHitsOnDelay, giPongScore, giPongBall, giPongLevel, glPingSounds, giPongEasyMode, giPongStraightThru, gbPongWaves, gbDuck, giBrickVOffset, giBrickHOffset, glBrickList, giColumns, glBallsInPlay, glBulletsInPlay, giBallMinTicks, giPaddleHalfWidth, giPaddleQuarterWidth, giPaddleHits, giPaddleBounceAngle, giBonusChannel
- set glWallChannels to []
- setAt(glWallChannels, 1, 5)
- setAt(glWallChannels, 2, 6)
- setAt(glWallChannels, 3, 7)
- setAt(glWallChannels, 4, 8)
- setAt(glWallChannels, 5, 9)
- set giPongPaddleChannel to 30
- set giPongBrickChannel to 31
- set giPongSplashChannel to 38
- set gbPaused to 0
- set the visible of sprite 48 to gbPaused
- set giPlayFieldLeftBoundary to 0
- set giPlayFieldRightBoundary to 464
- set giPlayFieldTopBoundary to 10
- set giPlayFieldBottomBoundary to 220
- set giHideOffset to 1000
- set giDebugOn to 1
- set giHitsOnDelay to 0
- set giPongScore to 0
- set giPongBall to 3
- set giPongLevel to 0
- set the text of cast "PongScore" to string(giPongScore)
- set the text of cast "PongBall" to string(giPongBall)
- set the text of cast "PongLevel" to string(giPongLevel)
- set glPingSounds to ["Ting1", "Ting2", "Ting3", "Ting4", "Ting5"]
- set giPongEasyMode to 0
- set giPongStraightThru to 0
- set gbPongWaves to 0
- set gbDuck to 0
- set glBrickList to [[]]
- set glBulletsInPlay to []
- set glBallsInPlay to []
- set giBallMinTicks to 2
- set giColumns to 0
- addAt(glBallsInPlay, 1, birth(script "ballScript", 2, 10, 10, 22, 32, "PongBall1"))
- set giPaddleBounceAngle to 8
- set giPaddleHits to 0
- puppetSprite(giPongPaddleChannel, 1)
- set the locH of sprite giPongPaddleChannel to the mouseH
- puppetSprite(giPongSplashChannel, 1)
- set the locH of sprite giPongSplashChannel to giHideOffset
- puppetSprite(giPongBrickChannel, 1)
- set the locH of sprite giPongBrickChannel to giHideOffset
- set giBonusChannel to 47
- puppetSprite(giBonusChannel, 1)
- pongNewLevel()
- set the keyDownScript to "paddleKeyDown"
- cursor(0)
- end
-