问题1:CCSpriteBatchNode的类方法与初始化方法都是with texture或者 with file。 但是sprite的创建及其动画是可以从CCSpriteFrameCache获得的。那么现在CCSpriteBatchNode的with texture与with file是否会占用过多资源?如果是,就需要一个不需要with texture与with file的初始化方法。
答:
问题2:SpriteBatchNode offset+anchor+scale这几个function中,for循环后CCSpriteBatchNode居然有3个,而做为比较的Sprite offset+anchor+scale的sprite也是3个,这样如何体现其优势?(author都说了:凡是加到CCSpriteBatchNode中的Sprite可以在一个OpenGL ES draw call中完成,3个batchnode如何体现优势)
答:
问题3:SpriteTest也会内存不足,有泄漏?因为倒着看了几个方法后系统就报memory不足了。
答:
问题4:SpriteTest中Alias Name是做什么的。
答: 就是CCSpriteFrameCache用plist调入整张texture资源后,你可以用plist中的key来获得对应位置的texture。
问题5:【self unschedule:_cmd】是什么?
答: cocoachina.com中有人回答了。
问题6:SpriteBatchNode是某些Sprite的父对象,那默认Sprite(即SpriteBatchNode)的anchorPoint在哪里。默认SpriteBatchNode的contendSize是多大?
答: dualface.qeeplay.com/index.php/archives/1276
问题7:SpriteTest中的OpenGL Z vertex可以好好看看,CCOrbitCamera是个怎么回事
答: