home *** CD-ROM | disk | FTP | other *** search
- property iiH, iiV, iiVV, iiChannel, isCastName, iiPosition, iiAnimCycle
-
- on birth me, piH, piV, piVV, piChannel, psCastName, piPosition
- set the iiH of me to piH
- set the iiV of me to piV
- set the iiVV of me to piVV
- set the iiChannel of me to piChannel
- set the isCastName of me to psCastName
- set the iiPosition of me to piPosition
- set the iiAnimCycle of me to 2
- puppetSprite(the iiChannel of me, 1)
- set lsTempCastName to psCastName & iiAnimCycle
- set the castNum of sprite the iiChannel of me to the number of member lsTempCastName
- set the locH of sprite the iiChannel of me to the iiH of me
- set the locV of sprite the iiChannel of me to the iiV of me
- return me
- end
-
- on mPongBulletReset me
- set the locH of sprite the iiChannel of me to 10 + (the iiPosition of me * 10)
- set the locV of sprite the iiChannel of me to 360
- set the castNum of sprite the iiChannel of me to the number of member the isCastName of me
- set the iiV of me to 0
- end
-
- on mPongBulletLocV me
- if the iiV of me = 0 then
- return -1
- end if
- return the locV of sprite the iiChannel of me
- end
-
- on mPongBulletMove me
- global giPongPaddleChannel, giPongBrickChannel, giPaddleBounceAngle, giPongEasyMode, giPongScore, giPlayFieldTopBoundary, giPlayFieldLeftBoundary, giBrickVOffset, giBrickHOffset, glWallChannels, glBrickList, giHideOffset, giBallMinTicks, giHitsOnDelay
- set newLocV to the locV of sprite the iiChannel of me - the iiVV of me
- if the iiAnimCycle of me < 3 then
- set the iiAnimCycle of me to the iiAnimCycle of me + 1
- else
- set the iiAnimCycle of me to 1
- end if
- set lsTempCastName to the isCastName of me & iiAnimCycle
- set the castNum of sprite the iiChannel of me to the number of member lsTempCastName
- set the locV of sprite the iiChannel of me to newLocV
- set lTemp to pongCheckForHit(the iiChannel of me)
- if listp(lTemp) then
- pongProcessHit(lTemp)
- end if
- end
-