Cocos2d iphone 在cocos2d中离开CCC场景时会发生什么?
使用cocos2d 我需要知道用下一个场景离开场景(替换场景)时会发生什么:Cocos2d iphone 在cocos2d中离开CCC场景时会发生什么?,cocos2d-iphone,Cocos2d Iphone,使用cocos2d 我需要知道用下一个场景离开场景(替换场景)时会发生什么: shared frame cache (plist and png 's that where spriteSheets ) sprites (the removed?) actions (they stoped and released?) bodies (box2d) (i have to destroy them or its auto? ) 这是自动发生的,还是我需要在dealloc上做点什么(例如:删
shared frame cache (plist and png 's that where spriteSheets )
sprites (the removed?)
actions (they stoped and released?)
bodies (box2d) (i have to destroy them or its auto? )
这是自动发生的,还是我需要在dealloc上做点什么(例如:删除childs)
谢谢。所有缓存保持不变,您可以根据需要删除纹理、精灵边框等 精灵和场景的所有其他节点将自动删除。行动也是如此 Box2D是一个独立的库,未集成在cocos2d的源代码中。Box2D源代码仅与cocos2d iphone一起分发。这意味着您负责清理所有Box2D对象和世界。那里没有什么自动的