Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
225 stars 126 forks source link

Bug fixes for sprite batch #442

Closed totallyeviljake closed 9 years ago

totallyeviljake commented 9 years ago

CCSpriteBatchNode would reorder its children but it would sort using the OrderofArrival. This value is reset to zero when nodes are added to sprite batch, therefore causing irregular drawing reordering of its children. The correct sort should use the AtlasIndex instead.