home *** CD-ROM | disk | FTP | other *** search
- on initializeDrops
- global dropEffectSO, dropData, dropFrames
- dropData = []
- repeat with wDrop = 1 to 30
- wSprite = wDrop + dropEffectSO
- set the loc of sprite wSprite to point(-50, -50)
- add(dropData, [0, point(0, 0), 0, 0, 0, 0, 0])
- end repeat
- end
-
- on moveDrops
- global dropEffectSO, dropData, dropFrames
- repeat with wDrop = 1 to 30
- wSprite = wDrop + dropEffectSO
- if dropData[wDrop][1] = 1 then
- end if
- end repeat
- end
-
- on initializeBeams
- global beamEffectSO, beamData, beamFrames
- beamData = []
- repeat with wBeam = 1 to 30
- wSprite = wBeam + beamEffectSO
- add(beamData, [0, 0])
- end repeat
- end
-
- on initializeClouds
- global cloudEffectSO, cloudData, cloudFrames
- cloudData = []
- repeat with wCloud = 1 to 30
- wSprite = wCloud + cloudEffectSO
- add(cloudData, [0, 0, 0, point(0, 0)])
- end repeat
- end
-
- on addCloud addLoc, addScale
- global cloudEffectSO, cloudData, cloudFrames
- validSlot = 0
- repeat with wScan = 1 to count(cloudData)
- if (validSlot = 0) and (cloudData[wScan][1] = 0) then
- validSlot = wScan
- end if
- end repeat
- if validSlot <> 0 then
- wSprite = cloudEffectSO + validSlot
- cloudData[validSlot] = [1, 0, addScale, addLoc]
- set the blend of sprite wSprite to 100
- set the loc of sprite wSprite to addLoc
- end if
- end
-
- on moveClouds
- global cloudEffectSO, cloudData, cloudFrames
- repeat with wCloud = 1 to count(cloudData)
- wSprite = cloudEffectSO + wCloud
- if cloudData[wCloud][1] = 1 then
- cloudData[wCloud][2] = cloudData[wCloud][2] + 1
- if cloudData[wCloud][2] > 20 then
- cloudData[wCloud] = [0, 0, 0, point(0, 0)]
- set the loc of sprite wSprite to point(-50, -50)
- end if
- end if
- if cloudData[wCloud][1] = 1 then
- baseSize = (15 + (1 * cloudData[wCloud][2])) * cloudData[wCloud][3]
- set the width of sprite wSprite to baseSize
- set the height of sprite wSprite to baseSize / 3
- set the blend of sprite wSprite to 100 - (cloudData[wCloud][2] * 5)
- end if
- end repeat
- end
-