当前位置: 首页>>代码示例>>C++>>正文


C++ CCShuffleTiles类代码示例

本文整理汇总了C++中CCShuffleTiles的典型用法代码示例。如果您正苦于以下问题:C++ CCShuffleTiles类的具体用法?C++ CCShuffleTiles怎么用?C++ CCShuffleTiles使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CCShuffleTiles类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: create

	static CCFiniteTimeAction* create(float t)
	{
		CCShuffleTiles* shuffle = CCShuffleTiles::create(t, CCSizeMake(16,12), 25);
		CCActionInterval* shuffle_back = shuffle->reverse();
		CCDelayTime* delay = CCDelayTime::create(2);

		return CCSequence::create(shuffle, delay, shuffle_back, NULL);
	}
开发者ID:huangshucheng,项目名称:MyUtil,代码行数:8,代码来源:EasyEffect.cpp

示例2: actionWithDuration

	static CCActionInterval* actionWithDuration(ccTime t)
	{
		CCShuffleTiles* shuffle = CCShuffleTiles::actionWithSeed(25, ccg(16,12), t);
		CCActionInterval* shuffle_back = shuffle->reverse();
		CCDelayTime* delay = CCDelayTime::actionWithDuration(2);

		return (CCActionInterval*)(CCSequence::actions(shuffle, delay, shuffle_back, NULL));
	}
开发者ID:geniikw,项目名称:myFirst2DGame,代码行数:8,代码来源:EffectsTest.cpp

示例3: create

    static CCActionInterval* create(float t)
    {
        CCShuffleTiles* shuffle = CCShuffleTiles::create(25, ccg(16,12), t);
        CCActionInterval* shuffle_back = shuffle->reverse();
        CCDelayTime* delay = CCDelayTime::create(2);

        return (CCActionInterval*)(CCSequence::create(shuffle, delay, shuffle_back, NULL));
    }
开发者ID:DangoXJ,项目名称:TuJinZhi,代码行数:8,代码来源:EffectsTest.cpp

示例4: CCShuffleTiles

CCShuffleTiles* CCShuffleTiles::create(float duration, const CCSize& gridSize)
{
    CCShuffleTiles *pAction = new CCShuffleTiles();

    if (pAction)
    {
        if (pAction->initWithDuration(duration, gridSize))
        {
            pAction->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pAction);
        }
    }

    return pAction;    
}
开发者ID:IppClub,项目名称:Dorothy,代码行数:18,代码来源:CCActionTiledGrid.cpp

示例5: CCShuffleTiles

CCShuffleTiles* CCShuffleTiles::actionWithSeed(int s, const ccGridSize& gridSize, ccTime duration)
{
    CCShuffleTiles *pAction = new CCShuffleTiles();

    if (pAction)
    {
        if (pAction->initWithSeed(s, gridSize, duration))
        {
            pAction->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pAction);
        }
    }

    return pAction;
}
开发者ID:blakey87,项目名称:cocos2d-x-2.1.1,代码行数:18,代码来源:CCActionTiledGrid.cpp

示例6: CCShuffleTiles

CCShuffleTiles* CCShuffleTiles::create(float duration, const CCSize& gridSize, unsigned int seed)
{
    CCShuffleTiles *pAction = new CCShuffleTiles();

    if (pAction)
    {
        if (pAction->initWithDuration(duration, gridSize, seed))
        {
            CC_SAFE_AUTORELEASE(pAction);
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pAction);
        }
    }

    return pAction;
}
开发者ID:solarzhong,项目名称:cocos2dx-classical,代码行数:18,代码来源:CCActionTiledGrid.cpp

示例7: CCShuffleTiles

	NSObject* CCShuffleTiles::copyWithZone(cocos2d::NSZone *pZone)
	{
		NSZone* pNewZone = NULL;
		CCShuffleTiles* pCopy = NULL;
		if(pZone && pZone->m_pCopyObject)
		{
			pCopy = (CCShuffleTiles*)(pZone->m_pCopyObject);
		}
		else
		{
			pCopy = new CCShuffleTiles();
			pZone = pNewZone = new NSZone(pCopy);
		}

		CCTiledGrid3DAction::copyWithZone(pZone);

		pCopy->initWithSeed(m_nSeed, m_sGridSize, m_fDuration);

		CCX_SAFE_DELETE(pNewZone);
		return pCopy;
	}
开发者ID:valentinvit,项目名称:cocos2d-x,代码行数:21,代码来源:CCActionTiledGrid.cpp


注:本文中的CCShuffleTiles类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。