hiepnd / ccblade Goto Github PK
View Code? Open in Web Editor NEWCCBlade - Fruit Ninja Blade effect implementation in cocos2d.
Home Page: http://www.hiepnd.wordpress.com
CCBlade - Fruit Ninja Blade effect implementation in cocos2d.
Home Page: http://www.hiepnd.wordpress.com
Hi. I was wondering if you know what needs to be done to get this class compatible is cocos2d 2.0? I was using it in my project which was based on cocos2D 1.x and I recently upgraded the project to 2.0 but I am having compiler errors in CCBlade.m in the draw method with all of the openGL commands.
I really like this class, you did a great job so I'd love to keep using it in my project. Any help would be awesome.
Thanks!
John
An easy way to add ARC compatibility and still keep compatibility with non-arc users.
Would be nice to have this!
#if __has_feature(objc_arc)
...
#else
...
#endif
Hi there,
Thanks for your work, after installation, i can draw a blade, but as soon as i finish the path and put my finger off the screen, my app crashes with the error mentioned in the title, and showing the code line :
if ([path count] < 3) {
return;
}
did i miss something ?
How about setting finish and willPop to NO when clearing a CCBlade. this way it can be re-used, instead of allocating another blade. Oh yeah, it also needs to be public.
- (void) clear {
[path removeAllObjects];
finish = NO;
willPop = NO;
}
Issue:
The project builds but will not run on simulator or device.
Fix:
The target needed to be selected in the project pane and the code sign needed to be changed to self.
Thank you!!
When calling finish and when the blade is finally removed from view, the screen flickers.
I got around it by not calling removeFromParent in draw method, instead I added a count method that returns path.count and removed it from parent view in update functions.
Hi,
Extension seems great. But I need to ask a question. It is ok when I'm acting normally and touch the screen moving a little and stop touching. But when I touch to the screen, move and stop in somewhere, the trail stops too. And the size of the trail is, I guess, about the maximumpoint size that we gave the blade initializer as assumed.
So Is it possible to remove that trail that occurs on touch stop?
Thanks in advance.
Hey,
First of all, awesome work on this, I love this class a lot!
I wanted to use it in a project recently and there is one strange bug, for some reason the class does not work on 64bit devices, instead of the nice streak the only thing that appears is a thin line down the bottom of the screen, i presume it has something to do with opengl, but I am not sure why only on 64 bit devices, any ideas why this would happen and how could it be fixed?
Thanks.
This file is not part of the repo but is being referenced by the example project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.