コード例 #1
0
ファイル: EffectsTest.cpp プロジェクト: geniikw/myFirst2DGame
	static CCActionInterval* actionWithDuration(ccTime t)
	{
		CCFadeOutUpTiles* fadeout = CCFadeOutUpTiles::actionWithSize(ccg(16,12), t);
		CCActionInterval* back = fadeout->reverse();
		CCDelayTime* delay = CCDelayTime::actionWithDuration(0.5f);

		return (CCActionInterval*)(CCSequence::actions(fadeout, delay, back, NULL));
	}
コード例 #2
0
ファイル: EasyEffect.cpp プロジェクト: huangshucheng/MyUtil
	static CCFiniteTimeAction* create(float t)
	{
		CCFadeOutUpTiles* fadeout = CCFadeOutUpTiles::create(t, CCSizeMake(15,10));
		CCActionInterval* back = fadeout->reverse();
		CCDelayTime* delay = CCDelayTime::create(0.5f);

		return CCSequence::create(fadeout, delay, back, NULL);
	}
コード例 #3
0
ファイル: EffectsTest.cpp プロジェクト: DangoXJ/TuJinZhi
    static CCActionInterval* create(float t)
    {
        CCFadeOutUpTiles* fadeout = CCFadeOutUpTiles::create(ccg(16,12), t);
        CCActionInterval* back = fadeout->reverse();
        CCDelayTime* delay = CCDelayTime::create(0.5f);

        return (CCActionInterval*)(CCSequence::create(fadeout, delay, back, NULL));
    }