继承node类

class MyNode : public cocos2d::Node
public: virtual bool init();

bool MyNode::init()
{
    if (!cocos2d::Node::init())
    {
        return false;
    }
    return true;
}

你可能感兴趣的:(继承node类)