Пример #1
0
Hover* Hover::createWithSpriteFrameName(const std::string frameName)
{
	Hover* pHover = new Hover();
	pHover->initWithSpriteFrameName(frameName);
	pHover->autorelease();

	return pHover;
}
Пример #2
0
Hover* Hover::create(float duration, float distance)
{
    Hover* action = new Hover();
    action->initWithDuration(duration, distance);
    action->autorelease();
	
    return action;
}