Coder Social home page Coder Social logo

ccblade's People

Contributors

hiepnd avatar panajev avatar zbyhoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccblade's Issues

Cocos2d 2.0

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

Adding check for ARC

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

On clear, set finish = NO, willPop = NO

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;
}

Build and Run

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!!

Flicker

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.

How to remove blade trail when touch stops

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.

CCBlade ios8 and 64bit devices

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.