home *** CD-ROM | disk | FTP | other *** search
- on WALKRIGHTBLOCK
- global MAN, GRIDX, GRIDY, DT, MANH, MANC, HEAD, BLOCKED, GRIDVAL, DR
- set BLOCKED to 0
- if getAt(GRIDVAL, MAN - 13) <> 0 then
- exit
- end if
- set DT to 5
- set MANX to getAt(GRIDX, MAN)
- set MANY to getAt(GRIDY, MAN)
- puppetSound("FOOTSTP.WAV")
- repeat with n = 1 to 4
- set the castNum of sprite 30 to 36 + n
- set MANX to MANX + 8
- set the locH of sprite 30 to MANX
- set the locH of sprite 11 to MANX
- updateStage()
- COUNTTIME()
- end repeat
- set MAN to MAN + 1
- set the castNum of sprite 30 to 37
- set the locH of sprite 30 to getAt(GRIDX, MAN)
- set the locV of sprite 30 to getAt(GRIDY, MAN)
- set the locH of sprite 11 to getAt(GRIDX, MAN - 14)
- set the locV of sprite 11 to getAt(GRIDY, MAN - 14)
- updateStage()
- set DR to 20
- end
-
- on WALKLEFTBLOCK
- global MAN, GRIDX, GRIDY, DT, MANH, MANC, HEAD, DR
- set DT to 5
- set MANX to getAt(GRIDX, MAN)
- set MANY to getAt(GRIDY, MAN)
- puppetSound("FOOTSTP.WAV")
- repeat with n = 1 to 4
- set the castNum of sprite 30 to 27 + n
- set MANX to MANX - 8
- set the locH of sprite 30 to MANX
- set the locH of sprite 11 to MANX
- updateStage()
- COUNTTIME()
- end repeat
- set MAN to MAN - 1
- set the castNum of sprite 30 to 28
- set the locH of sprite 30 to getAt(GRIDX, MAN)
- set the locV of sprite 30 to getAt(GRIDY, MAN)
- set the locH of sprite 11 to getAt(GRIDX, MAN - 14)
- set the locV of sprite 11 to getAt(GRIDY, MAN - 14)
- updateStage()
- set DR to 40
- end
-
- on MANFALLBLOCK
- global GRIDX, GRIDY, MAN, BDOWN, GRIDVAL, TMAN, DT, MANX, MANC, HEAD, BC, bh, DR
- set DT to 1
- set TMAN to MAN
- set BDOWN to 0
- repeat while (getAt(GRIDVAL, TMAN + 14) = 0) or (getAt(GRIDVAL, TMAN + 14) = 15)
- set TMAN to TMAN + 14
- set BDOWN to BDOWN + 1
- if TMAN > 154 then
- exit repeat
- end if
- end repeat
- repeat with n = 1 to BDOWN
- set MANX to getAt(GRIDX, MAN)
- set MANC to getAt(GRIDY, MAN)
- set BC to getAt(GRIDY, MAN - 14)
- repeat with NN = 1 to 4
- set the castNum of sprite 30 to 48
- set the locV of sprite 30 to MANC + 4
- set the locV of sprite 11 to BC + 4
- updateStage()
- COUNTTIME()
- set the castNum of sprite 30 to 47
- set the locV of sprite 30 to MANC + 8
- set the locV of sprite 11 to BC + 8
- updateStage()
- COUNTTIME()
- set BC to BC + 8
- set MANC to MANC + 8
- end repeat
- set MAN to MAN + 14
- end repeat
- puppetSound("MANDOWN.WAV")
- updateStage()
- end
-
- on DROPRIGHT
- global HEAD, GRIDVAL, GRIDX, GRIDY, bh, DT, MAN, DR
- set DT to 5
- set the castNum of sprite 30 to 51
- updateStage()
- COUNTTIME()
- set the castNum of sprite 30 to 52
- updateStage()
- COUNTTIME()
- set DR to 2
- set DT to 3
- set the locH of sprite 11 to getAt(GRIDX, MAN - 14)
- set the locV of sprite 11 to getAt(GRIDY, MAN - 14)
- set bh to the locH of sprite 11
- if getAt(GRIDVAL, MAN + 1) <> 0 then
- puppetSound("ROCK1.WAV")
- end if
- repeat with n = 1 to 4
- if n = 3 then
- set the castNum of sprite 30 to 51
- end if
- set bh to bh - -8
- set the locH of sprite 11 to bh
- updateStage()
- COUNTTIME()
- end repeat
- set the castNum of sprite 30 to 37
- set the locH of sprite 11 to getAt(GRIDX, MAN - 13)
- updateStage()
- setAt(GRIDVAL, MAN - 13, 2)
- set HEAD to 0
- if getAt(GRIDVAL, MAN + 1) = 0 then
- BLOCKFALL()
- end if
- set the trails of sprite 11 to 1
- updateStage()
- set the locH of sprite 11 to -2000
- set the locV of sprite 11 to -2000
- end
-
- on DROPLEFT
- global HEAD, GRIDVAL, GRIDX, GRIDY, bh, DT, MAN, DR
- set DT to 5
- set the castNum of sprite 30 to 49
- updateStage()
- COUNTTIME()
- set the castNum of sprite 30 to 50
- updateStage()
- COUNTTIME()
- set DR to 4
- set DT to 3
- set the locH of sprite 11 to getAt(GRIDX, MAN - 14)
- set the locV of sprite 11 to getAt(GRIDY, MAN - 14)
- set bh to the locH of sprite 11
- if getAt(GRIDVAL, MAN - 1) <> 0 then
- puppetSound("ROCK1.WAV")
- end if
- repeat with n = 1 to 4
- if n = 3 then
- set the castNum of sprite 30 to 49
- end if
- set bh to bh - 8
- set the locH of sprite 11 to bh
- updateStage()
- COUNTTIME()
- end repeat
- set the locH of sprite 11 to getAt(GRIDX, MAN - 15)
- set the castNum of sprite 30 to 28
- updateStage()
- setAt(GRIDVAL, MAN - 15, 2)
- set HEAD to 0
- if getAt(GRIDVAL, MAN - 1) = 0 then
- BLOCKFALL()
- end if
- set the trails of sprite 11 to 1
- updateStage()
- set the locH of sprite 11 to -2000
- set the locV of sprite 11 to -2000
- end
-
- on BLOCKFALL
- global GRIDX, GRIDY, BCNT, BCC, DT, DR, MAN
- set DT to 1
- if DR = 2 then
- set BCC to MAN - 13
- end if
- if DR = 4 then
- set BCC to MAN - 15
- end if
- setAt(GRIDVAL, BCC, 0)
- repeat while getAt(GRIDVAL, BCC + 14) = 0
- repeat with n = 1 to 4
- set the locV of sprite 11 to getAt(GRIDY, BCC) + (n * 8)
- updateStage()
- COUNTTIME()
- end repeat
- set BCC to BCC + 14
- set the locV of sprite 11 to getAt(GRIDY, BCC)
- updateStage()
- if BCC > 154 then
- exit repeat
- end if
- end repeat
- puppetSound("DROPROCK.WAV")
- updateStage()
- setAt(GRIDVAL, BCC, 2)
- end
-
- on BLOCKFALLALONE
- global GRIDX, GRIDY, DT, BFALL, GRIDVAL
- set DT to 3
- if getAt(GRIDVAL, BFALL + 14) = 1 then
- setAt(GRIDVAL, BFALL + 14, 2)
- exit
- end if
- repeat with n = 1 to 4
- set the locV of sprite 11 to getAt(GRIDY, BFALL) + (n * 8)
- updateStage()
- COUNTTIME()
- end repeat
- set the trails of sprite 11 to 1
- updateStage()
- set the locH of sprite 11 to -2000
- set the locV of sprite 11 to -2000
- puppetSound("DROPROCK.WAV")
- updateStage()
- set BFALL to BFALL + 14
- setAt(GRIDVAL, BFALL, 2)
- end
-