Import particle from cocos 2d project to non-cocos2d project
I have created particle in cosos 2d and I want to import my particle into my real project (non cocos2) project, How ca开发者_JAVA技巧n I do this?
I don't think it's possible because of the following:
The cocos 2d library contains lots of different classes that are responsible for things like particles, sounds and effects.
If you would like to import a particle, you would need to import the whole library which would make your non-cocos2d project into a cocos2d project.
Not too long ago, i answered a question about particle creation outside of cocos2d you might check it out. The answer is about spawning images, adding them to an array and animating them via the array.
You can also make particles with openGLES which would be a bit harder...
精彩评论