cocos2d-iphone Notes

来源:互联网 发布:秦夕颜捏脸数据 编辑:程序博客网 时间:2024/06/04 20:05





never call CCDirector's replaceScene in a node's init method,it crashes, The Director cannot cope with replacing a scene from a node that is currently being initialized


notes should never retail another notes that do not belong to them


CCSpriteBatchNode requires that all of its children use the same texture


changeing scenes causes the previous scene to be deallocated only after the new scene has been initialized,that means you cannot use the removeunused methods in the init method of a scene




delegate class is used to handle some of the tasks started by the delegated class that It can not handle them by themself.