home *** CD-ROM | disk | FTP | other *** search
- global MaaierStatus, Scrolling, MyFlip, MyBottom, TinusXtraMem, TinusStatus, TinusLife, TinusOnsterf, TinusSpr, TinusMem, TinusH, TinusV, TinusFlikker, MaaierSpr
-
- on initTinus
- TinusSpr = 10
- TinusMem = 8
- TinusXtraMem = 0
- TinusStatus = #Startright
- TinusH = -220
- TinusV = MyBottom
- TinusLife = 3
- TinusFlikker = 10
- TinusOnsterf = 0
- sprite(TinusSpr).visible = 1
- end
-
- on ControlTinus
- global Direction
- if TinusOnsterf > 0 then
- TinusOnsterf = TinusOnsterf - 1
- else
- TinusOnsterf = 0
- end if
- case TinusStatus of
- #Startright:
- if the timer > 10 then
- TinusXtraMem = 0
- end if
- if TinusH < 220 then
- Scrolling = 0
- TinusH = TinusH + 10
- DoTinus()
- else
- TinusH = 220
- TinusStatus = #normal
- end if
- #StartLeft:
- if the timer > 10 then
- TinusXtraMem = 0
- end if
- if TinusH > 420 then
- Scrolling = 0
- TinusH = TinusH - 10
- DoTinus()
- else
- TinusH = 420
- TinusStatus = #normal
- end if
- #BackDrop:
- if TinusMem >= 48 then
- TinusMem = 49
- TinusStatus = #BackDead
- else
- TinusMem = TinusMem + 0.69999999999999996
- end if
- Scrolling = 0
- sprite(TinusSpr).loc = point(TinusH, TinusV)
- sprite(TinusSpr).memberNum = TinusMem
- sprite(TinusSpr).flipH = MyFlip
- #FrontDrop:
- if TinusMem >= 30 then
- TinusMem = 51
- TinusStatus = #FrontDead
- else
- TinusMem = TinusMem + 0.5
- end if
- Scrolling = 0
- sprite(TinusSpr).loc = sprite(MaaierSpr).loc
- sprite(TinusSpr).memberNum = TinusMem
- sprite(TinusSpr).flipH = MyFlip
- #BackDead:
- if TinusFlikker > 0 then
- if TinusMem >= 50 then
- TinusMem = 49
- TinusFlikker = TinusFlikker - 1
- else
- TinusMem = TinusMem + 0.5
- end if
- sprite(TinusSpr).memberNum = TinusMem
- sprite(TinusSpr).flipH = MyFlip
- updateStage()
- else
- reset()
- TinusFlikker = 10
- end if
- #FrontDead:
- if TinusFlikker > 0 then
- if TinusMem >= 52 then
- TinusMem = 51
- TinusFlikker = TinusFlikker - 1
- else
- TinusMem = TinusMem + 0.5
- end if
- sprite(TinusSpr).memberNum = TinusMem
- sprite(TinusSpr).flipH = MyFlip
- updateStage()
- else
- reset()
- TinusFlikker = 10
- end if
- #OutScreenRight:
- if the timer > 10 then
- TinusXtraMem = 0
- end if
- if TinusH > 900 then
- sprite(20).member = member(117, 1)
- sprite(20).visible = 1
- updateStage()
- startTimer()
- repeat while the timer < 60
- end repeat
- sprite(20).visible = 0
- initBackGound(#left)
- Direction = #left
- MyFlip = 1
- TinusStatus = #StartLeft
- else
- TinusH = TinusH + 10
- DoTinus()
- end if
- #OutScreenLeft:
- if the timer > 10 then
- TinusXtraMem = 0
- end if
- if TinusH < -300 then
- sprite(19).visible = 1
- repeat with n = 1 to 80
- sprite(19).member = member(120 + (n / 8.0), 1)
- updateStage()
- end repeat
- repeat with n = 80 down to 1
- sprite(19).member = member(120 + (n / 8.0), 1)
- updateStage()
- end repeat
- startTimer()
- repeat while the timer < 60
- end repeat
- go(4)
- else
- TinusH = TinusH - 10
- DoTinus()
- end if
- #normal:
- case Direction of
- #right:
- MyFlip = 0
- TinusH = 220
- if bgOneKey(39) = 1 then
- Scrolling = -10
- else
- if bgOneKey(37) = 1 then
- Scrolling = -3
- else
- if (bgOneKey(37) = 0) and (bgOneKey(39) = 0) then
- Scrolling = -5
- end if
- end if
- end if
- #left:
- MyFlip = 1
- TinusH = 420
- if bgOneKey(39) = 1 then
- Scrolling = 3
- else
- if bgOneKey(37) = 1 then
- Scrolling = 10
- else
- if (bgOneKey(37) = 0) and (bgOneKey(39) = 0) then
- Scrolling = 5
- end if
- end if
- end if
- end case
- if bgOneKey(38) = 1 then
- TinusXtraMem = 0
- MaaierStatus = #jump
- else
- if (bgOneKey(40) = 1) and (MaaierStatus = #normal) then
- TinusXtraMem = 12
- else
- TinusXtraMem = 0
- end if
- end if
- DoTinus()
- end case
- end
-
- on DoTinus
- if TinusMem >= 6 then
- TinusMem = 1
- else
- TinusMem = TinusMem + 0.5
- end if
- sprite(TinusSpr).loc = point(TinusH, TinusV)
- sprite(TinusSpr).memberNum = TinusMem + TinusXtraMem
- sprite(TinusSpr).flipH = MyFlip
- end
-