(version 2)
(include "sci.sh")
(exports
    0 speedChecker
)
(use "Main")
(use "Cycle")
(use "Game")
(use "View")
(script 17)


(local
    local0

)
(instance fred of Actor
    (properties)
)
(instance public speedChecker of Rm
    (properties
        style $0006
    )

    (method (init)
        proc0_2()
        (super:init())
        (send gSounds:eachElementDo(167))
        (while (>u GetTime() -1024)
        )
        (fred:
            view(936)
            setLoop(0)
            illegalBits(0)
            posn(20 99)
            setStep(1 1)
            setMotion(MoveTo 300 100)
            setCycle(Fwd)
            init()
        )
        (send gGame:setSpeed(0))
        = global102 0
    )


    (method (doit)
        (super:doit())
        (if (== ++global102 1)
            = local0 (+ 60 GetTime())
        )
        (if (<u local0 GetTime())
            (if (<= global102 25)
                = global87 0
            )(else
                (if (<= global102 40)
                    = global87 1
                )(else
                    (if (<= global102 60)
                        = global87 2
                    )(else
                        = global87 3
                    )
                )
            )
            (send gGame:setSpeed(5))
            Animate((send gGQg3KDHandler:elements) 0)
            (send global2:newRoom(global207))
        )
    )

)
