CCBlade - Fruit Ninja Blade effect implementation in cocos2d.
Objective-C
Latest commit 4f1164d Jul 16, 2015 @hiepnd Update README
Permalink
Failed to load latest commit information.
Example
CCBlade.h (x): modernized Objective-C code. Oct 21, 2012
CCBlade.m (x): modernized Objective-C code. Oct 21, 2012
README Update README Jul 16, 2015
TouchTrailLayer.h Add files to gles2 branch May 21, 2012
TouchTrailLayer.m (+): converted the sample and the library to ARC. Sep 10, 2012

README

Warning: this repo is obsolete and no longer maintained!

Add TouchTrailLayer to your scene to see how it works.

Streak texture:
- Texture size 128 x 16
- Fisrt 32 x 16 is mapped to the head of the blade
- Next 32 x 16 is mapped to the body
- Next 32 x 16 is mapped to the tail
- Last 32 x 16 is unused

USAGE NOTICE:
- CCBlade.m, TouchTrailLayer.m and all .m file that use CCBlade or TouchTrailLayer should
have the File Type of sourcecode.cpp.objcpp (right click .m file in Xcode go to first tab and under
File Type drop down list choose the right option)