home *** CD-ROM | disk | FTP | other *** search
- on NEWLEVEL
- global GRIDX, GRIDY, X, Y, DESGRIDNUM, TRIANGLE, VALDR, DR, GRIDNUM, SPEED, BALLCNT, TRINUM, TRIX, TRIY, row, COL, D1, D2, D3, D4, TEMDR, ESPEED, EBALL1, EBALL2, EBALL3, EBALL4, EBALL1H, EBALL1V, EBALL2H, EBALL2V, EBALL3H, EBALL3V, EBALL4H, EBALL4V, E1CNT, E2CNT, E3CNT, E4CNT, EDR1, EDR2, EDR3, DOT1, DOD2, EDR4, SQUARECNT, GHOST, CLOCKCNT, CLOCKSTART, min, SEC, DELAYIT, BALLSLEFT, TILECNT, LEVEL, BONUSROUND, DEAD
- set DEAD to 0
- set VALDR to []
- set VALDR to [0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1]
- set TILECNT to 0
- set DELAYIT to 0
- set min to 0
- set SEC to 0
- set CLOCKCNT to 0
- set the text of cast "CLOCKTXT" to "0:00"
- set GHOST to 0
- set SQUARECNT to 0
- set DOT1 to 0
- set DOT2 to 0
- set EDR1 to 1
- set EDR2 to 4
- set EDR3 to 1
- set EDR4 to 4
- set E1CNT to 0
- set E2CNT to 0
- set E3CNT to 0
- set E4CNT to 0
- set EBALL1 to 42
- set EBALL2 to 0
- set EBALL3 to 0
- set EBALL4 to 0
- PUTBALLBOX()
- set row to 1
- set COL to 1
- repeat with n = 1 to 30
- if getAt(TRINUM, n) <> 46 then
- setAt(TRINUM, n, 30)
- set the castNum of sprite (12 + n) to cast "T0"
- set the locH of sprite (12 + n) to getAt(TRIX, n)
- set the locV of sprite (12 + n) to getAt(TRIY, n)
- updateStage()
- end if
- end repeat
- set TRIANGLE to []
- repeat with n = 1 to 30
- append(TRIANGLE, 0)
- append(TRIANGLE, 0)
- append(TRIANGLE, 0)
- append(TRIANGLE, 0)
- setAt(TRINUM, n, 30)
- end repeat
- set BALLCNT to 0
- set GRIDNUM to 1
- set DESGRIDNUM to 1
- set DR to 0
- set TEMDR to 4
- repeat with n = 6 to 7
- puppetSprite(n, 1)
- set the locH of sprite n to -2000
- set the locV of sprite n to -2000
- updateStage()
- end repeat
- puppetSprite(8, 1)
- set X to getAt(GRIDX, 1)
- set Y to getAt(GRIDY, 1)
- set the locH of sprite 8 to X
- set the locV of sprite 8 to Y
- updateStage()
- set EBALL1H to getAt(GRIDX, 42)
- set EBALL1V to getAt(GRIDY, 42)
- set EBALL2H to getAt(GRIDX, 42)
- set EBALL2V to getAt(GRIDY, 42)
- set EBALL3H to getAt(GRIDX, 42)
- set EBALL3V to getAt(GRIDY, 42)
- set EBALL4H to getAt(GRIDX, 42)
- set EBALL4V to getAt(GRIDY, 42)
- repeat with n = 9 to 12
- puppetSprite(n, 1)
- set the locH of sprite n to -2000
- set the locV of sprite n to -2000
- updateStage()
- end repeat
- repeat with n = 9 to 12
- set the castNum of sprite n to cast "GREENBALL"
- end repeat
- set the locH of sprite 9 to EBALL1H
- set the locV of sprite 9 to EBALL1V
- if BONUSROUND = 0 then
- set LEVEL to LEVEL + 1
- end if
- set the text of cast "LEVELTXT" to string(LEVEL)
- repeat with n = 1 to 30
- set the castNum of sprite (n + 12) to 30
- set the locH of sprite (n + 12) to getAt(TRIX, n)
- set the locV of sprite (n + 12) to getAt(TRIY, n)
- end repeat
- set EBALL1 to 42
- if LEVEL > 5 then
- set EBALL2 to 42
- end if
- if LEVEL > 8 then
- set EBALL3 to 42
- end if
- if LEVEL = 3 then
- set EBALL2 to 42
- end if
- PUTINWALLS()
- ESPRITE()
- PUTINDOTS()
- PUTINBONUSGRID()
- repeat with n = 1 to 30
- if getAt(TRINUM, n) <> 46 then
- set SQUARECNT to SQUARECNT + 1
- end if
- end repeat
- set SPEED to 5
- if LEVEL < 6 then
- set ESPEED to 4
- end if
- if (LEVEL >= 6) or (LEVEL = 2) then
- set ESPEED to 5
- end if
- startTimer()
- set the keyDownScript to "GETDIRECTION"
- puppetSound("THUD.WAV")
- go("BEG")
- end
-