Пример #1
0
CCAnimation* CCAnimation::animationWithAnimationFrames(CCArray* arrayOfSpriteFrameNames, float delayPerUnit, unsigned int loops)
{
    CCAnimation *pAnimation = new CCAnimation();
    pAnimation->initWithAnimationFrames(arrayOfSpriteFrameNames, delayPerUnit, loops);
    pAnimation->autorelease();
    return pAnimation;
}
Пример #2
0
	CCAnimation* CCAnimation::animationWithFrames(CCMutableArray<CCSpriteFrame*> *frames, float delay)
	{
		CCAnimation *pAnimation = new CCAnimation();
		pAnimation->initWithFrames(frames, delay);
		pAnimation->autorelease();

		return pAnimation;
	}
Пример #3
0
	CCAnimation* CCAnimation::animation()
	{
		CCAnimation *pAnimation = new CCAnimation();
		pAnimation->init();
		pAnimation->autorelease();

		return pAnimation;
	} 
Пример #4
0
CCAnimation* CCAnimation::animationWithSpriteFrames(CCArray *frames)
{
    CCAnimation *pAnimation = new CCAnimation();
    pAnimation->initWithSpriteFrames(frames);
    pAnimation->autorelease();

    return pAnimation;
}
Пример #5
0
CCAnimation* CCAnimation::createWithSpriteFrames(CCArray *frames, float delay/* = 0.0f*/)
{
    CCAnimation *pAnimation = new CCAnimation();
    pAnimation->initWithSpriteFrames(frames, delay);
    pAnimation->autorelease();

    return pAnimation;
}
Пример #6
0
CCAnimation* CCAnimation::create(void)
{
    CCAnimation *pAnimation = new CCAnimation();
    pAnimation->init();
    pAnimation->autorelease();

    return pAnimation;
} 
Пример #7
0
	CCAnimation* CCAnimation::animationWithName(const char *pszName, float fDelay)
	{
		CCAnimation *pAnimation = new CCAnimation();
		pAnimation->initWithName(pszName, fDelay);
		pAnimation->autorelease();

		return pAnimation;
	}
Пример #8
0
	CCAnimation* CCAnimation::animationWithName(const char *pszName, float fDelay, CCMutableArray<CCSpriteFrame*> *pFrames)
	{
		CCAnimation *pAnimation = new CCAnimation();
		pAnimation->initWithName(pszName, fDelay, pFrames);
		pAnimation->autorelease();

		return pAnimation;
	}