Exemple #1
0
        public static CCAnimation animationWithFrames(List <CCSpriteFrame> frames, float delay)
        {
            CCAnimation cCAnimation = new CCAnimation();

            cCAnimation.initWithFrames(frames, delay);
            return(cCAnimation);
        }
        /** Creates an animation with frames.
        @since v0.99.5
        */
        public static CCAnimation animationWithFrames(List<CCSpriteFrame> frames)
        {
            CCAnimation pAnimation = new CCAnimation();
            pAnimation.initWithFrames(frames);
            // pAnimation->autorelease();

            return pAnimation;
        }
Exemple #3
0
        /* Creates an animation with frames and a delay between frames.
         * @since v0.99.5
         */
        public static CCAnimation animationWithFrames(List <CCSpriteFrame> frames, float delay)
        {
            CCAnimation pAnimation = new CCAnimation();

            pAnimation.initWithFrames(frames, delay);
            // pAnimation->autorelease();

            return(pAnimation);
        }