演示demo:
https://www.youtube.com/watch?v=hmXwtyvJk_c
参考(cocos2d):
http://www.raywenderlich.com/14302/how-to-make-a-game-like-fruit-ninja-with-Box2d-and-cocos2d-part-1
http://www.raywenderlich.com/14393/how-to-make-a-game-like-fruit-ninja-with-Box2d-and-cocos2d-part-2
参考(cocos2dx切割sprite)
http://stackoverflow.com/questions/22662400/cutting-shaped-holes-in-polygons-in-cocos2d
遇到的问题和解决方案
cocos2dx gl 缓存的问题
http://stackoverflow.com/questions/28367881/why-i-need-add-empty-ccclippingnode-between-each-slice-part-in-cocos2dx-2-2-6/28367882#28367882
原文链接:https://www.f2er.com/cocos2dx/344610.html