(version 2)
(include "sci.sh")
(exports
    0 rm880
)
(use "Main")
(use "RandCycle")
(use "Cycle")
(use "Game")
(use "View")
(use "Obj")
(script 880)


(local
    local0
    local1

)
(instance public rm880 of Rm
    (properties
        picture 880
    )

    (method (init)
        (super:init())
        (send gLongSong:
            number(880)
            setLoop(-1)
            play()
        )
        (avisFangs:init())
        (avisEyes:init())
        (self:setScript(theVeryLastScript))
    )

)
(instance theVeryLastScript of Script
    (properties)

    (method (changeState newState)
        (var temp0, temp1[30])
        (switch (= state newState)
            (case 0
                = temp0 0
                = seconds 2
            )
            (case 1
                Message(0 830 4 6 24 1 @temp1)
                = local0 Display(@temp1 105 2510 100 60 9 102 25 107)
                = local1 Display(@temp1 105 2510 100 59 8 102 30 107)
                = seconds 5
            )
            (case 2
                Display(@temp0 108 local1)
                Display(@temp0 108 local0)
                = seconds 2
            )
            (case 3
                (glorySign:
                    init()
                    setCycle(End self)
                )
            )
            (case 4
                = seconds 3
            )
            (case 5
                (titleSign:init())
                (ballFx:
                    init()
                    setCycle(Fwd)
                )
                (egoDude:
                    init()
                    setCycle(RandCycle)
                )
                DrawPic(880 dpCLOSEREOPEN_HCENTER)
                = seconds 2
            )
            (case 6
                (avisFangs:setCycle(End))
                (avisEyes:setCycle(End self))
            )
            (case 7
                = seconds 10
            )
            (case 8
                (send gLongSong:fade(0 6 3 1 self))
            )
            (case 9
                (send global2:newRoom(52))
            )
        )
    )

)
(instance avisFangs of Prop
    (properties
        x 58
        y 123
        view 880
    )
)
(instance avisEyes of Prop
    (properties
        x 57
        y 108
        view 880
        loop 1
    )
)
(instance ballFx of Prop
    (properties
        x 154
        y 185
        view 883
    )
)
(instance egoDude of Prop
    (properties
        x 161
        y 168
        view 883
        loop 1
    )
)
(instance glorySign of Prop
    (properties
        x 55
        y 9
        view 884
    )
)
(instance titleSign of View
    (properties
        x 31
        y 42
        view 884
        loop 1
        signal $4000
    )
)
