Exemplo n.º 1
0
GameOverLayer* GameOverLayer::create(const ccColor4B& color)
{
    GameOverLayer *pRet = new GameOverLayer();
    pRet->initWithColor(color);
    pRet->autorelease();
    return pRet;
}
GameOverLayer* GameOverLayer::create(const Color4B& color)
{
    GameOverLayer *pRet = new GameOverLayer();
    if(pRet && pRet->initWithColor(color))
    {
        pRet->autorelease();
        return pRet;
    }
    CC_SAFE_DELETE(pRet);
    return NULL;
}