home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global CPUdelay, pathIndex, mustGiveUp, attackSoundRegistered
- CPUdelay = CPUdelay + 1
- if CPUdelay = 1 then
- pathIndex = []
- else
- if CPUdelay = 10 then
- calculateAllMoves(1)
- drawPathArrows()
- end if
- end if
- if CPUdelay >= 30 then
- playSound("Comp Move SFX")
- pathIndex = []
- attackSoundRegistered = 0
- go(10)
- else
- go(the frame)
- end if
- calcScore()
- if mustGiveUp = 1 then
- end if
- end
-