(include "sci.sh")
(use "Main")
(use "Cycle")
(use "Sounds")
(use "View")
(use "Obj")
(script 132)


(local
    local0 = 3

)
(instance public rm132 of Rm
    (properties
        picture 32
        style 32778
        horizon 50
        vanishingX 130
        vanishingY 50
    )

    (method (init)
        (super:init())
        (send gRoom:setScript(sFryRat))
    )

)
(instance sFryRat of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gSq5Music2:
                    number(142)
                    setLoop(1)
                    play()
                )
 = cycles 6  )
            )
            (case 1
                ((rat:init()) = cycles 6  )
            )
            (case 2
                ((rat:posn(174 25)) = cycles 6  )
            )
            (case 3
                ((rat:posn(164 39)) = cycles 6  )
            )
            (case 4
                ((rat:
                    setLoop(1)
                    posn(160 46)
                )
 (ratHead:init()) = cycles 6  )
            )
            (case 5
                ((ratEyes:init()) = cycles 6  )
            )
            (case 6
                ((ratEyes:hide()) = cycles 6  )
            )
            (case 7
                ((ratEyes:show()) = cycles 6  )
            )
            (case 8
                ((ratEyes:hide()) = cycles 6  )
            )
            (case 9
                ((ratHead:
                    setLoop(1)
                    setCel(2)
                    posn(156 50)
                )
 = cycles 6  )
            )
            (case 10
                (= cycles 6  )
            )
            (case 11
                ((ratEyes:
                    show()
                    setLoop(6)
                    setCel(0)
                    posn(160 66)
                )
 = cycles 6  )
            )
            (case 12
                ((ratEyes:hide()) = cycles 6  )
            )
            (case 13
                (= cycles 6  )
            )
            (case 14
                ((ratHead:
                    setCel(3)
                    posn(151 52)
                )
 = cycles 6  )
            )
            (case 15
                ((ratHead:posn(151 49)) = cycles 6  )
            )
            (case 16
                (= cycles 6  )
            )
            (case 17
                ((ratEyes:
                    show()
                    setLoop(8)
                    posn(161 52)
                )
 = cycles 6  )
            )
            (case 18
                ((ratEyes:hide()) = cycles 6  )
            )
            (case 19
                ((ratEyes:show()) = cycles 6  )
            )
            (case 20
                ((ratEyes:hide()) = cycles 6  )
            )
            (case 21
                (= cycles 1  )
            )
            (case 22
                ((ratEyes:dispose()) (ratHead:dispose()) (rat:
                    scaleSignal(1)
                    scaleX(133)
                    scaleY(133)
                    setLoop(2)
                    setCel(0)
                    posn(149 21)
                )
 = cycles 2  )
            )
            (case 23
                ((rat:
                    scaleSignal(1)
                    scaleX(128)
                    scaleY(128)
                    posn(139 14)
                )
 = cycles 2  )
            )
            (case 24
                ((rat:posn(118 17)) = cycles 2  )
            )
            (case 25
                ((rat:
                    scaleSignal(1)
                    scaleX(115)
                    scaleY(115)
                    posn(106 27)
                )
 = cycles 2  )
            )
            (case 26
                ((rat:
                    scaleSignal(1)
                    scaleX(107)
                    scaleY(107)
                    posn(93 40)
                )
 = cycles 2  )
            )
            (case 27
                ((rat:
                    scaleSignal(1)
                    scaleX(101)
                    scaleY(101)
                    posn(75 55)
                )
 = cycles 2  )
            )
            (case 28
                ((rat:dispose()) (send gSq5Music2:
                    number(145)
                    setLoop(1)
                    play()
                )
 (sparks:
                    init()
                    setCycle(Fwd)
                )
 = cycles 6  )
            )
            (case 29
                ((sparks:dispose()) (shine1:init()) (shine2:init()) (shine3:init()) Palette(1 322 2) = cycles 1  )
            )
            (case 30
                ((send gSq5Music2:
                    number(146)
                    setLoop(1)
                    play()
                )
 (shine1:hide()) (shine2:hide()) (shine3:hide()) Palette(1 32 2) = ticks 5  )
            )
            (case 31
                ((shine1:show()) (shine2:show()) (shine3:show()) Palette(1 322 2) 
                (if (> --local0 0)
                    = state (- state 2)
                )
 = ticks 5  )
            )
            (case 32
                (Palette(1 32 2) (shine1:dispose()) (shine2:dispose()) (shine3:dispose()) (send gSq5Music2:stop()) proc0_2(7) = cycles 1  )
            )
            (case 33
                ((send gRoom:newRoom(127)) )
            )
        )
    )

)
(instance mouseHead of Actor
    (properties
        x 172
        y 40
        view 145
        loop 8
        priority 5
        signal 16
    )
)
(instance inMouse of Actor
    (properties
        x 247
        y 56
        view 145
        signal 24576
        cycleSpeed 10
        moveSpeed 10
    )
)
(instance sparks of Prop
    (properties
        x 113
        y 91
        view 145
        loop 5
        priority 15
        signal 16
    )
)
(instance shine1 of View
    (properties
        x 93
        y 28
        view 145
        loop 7
    )
)
(instance shine2 of View
    (properties
        x 94
        y 79
        view 145
        loop 7
        cel 1
        priority 20
        signal 16
    )
)
(instance shine3 of View
    (properties
        x 158
        y 62
        view 145
        loop 7
        cel 2
    )
)
(instance rat of Actor
    (properties
        x 184
        y 12
        view 145
    )
)
(instance ratHead of Actor
    (properties
        x 155
        y 47
        view 145
        loop 1
        cel 1
        signal 16384
    )
)
(instance ratEyes of Actor
    (properties
        x 161
        y 57
        view 145
        loop 4
    )
)
