Skip to content
CCBlade - Fruit Ninja Blade effect implementation in cocos2d. http://www.hiepnd.wordpress.com
Find file
Pull request Compare This branch is 11 commits behind hiepnd:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Example
CCBlade.h
CCBlade.m
README
TouchTrailLayer.h
TouchTrailLayer.m

README

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)
Something went wrong with that request. Please try again.