Forums » C++ Framework » CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) »
| leo leo | CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|---|---|---|---|---|---|
|
Added by leo leo over 1 year ago
Hello everyone, I ported it to C++ and test it in Marmalade platform, the results are great! P.S - there might be a small memory leak, I didn't find it yet, if anyone will find something, please post it here. (ignore .h and .cpp attached files, the updated version is attached - ccblade.zip) streak1.png (1.4 kB) CCBlade.cpp (5.4 kB) CCBlade.h (2 kB) TouchTrailLayer.cpp (2.6 kB) TouchTrailLayer.h (1.6 kB) ccblade.zip (5.8 kB) |
||||
| Brad Parks | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Brad Parks over 1 year ago
Hi Leo.... Looks cool... Thanks for the work! BTW, is your game Rolly Poly made with Cocos2dx and Marmalade? |
||||
| leo leo | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by leo leo over 1 year ago
Yes |
||||
| Zhe Wang | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Zhe Wang over 1 year ago
Oh, perhaps it's the first cocos2d-x game using Marmalade platform. Enjoy Coding, Enjoy Life. |
||||
| leo leo | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by leo leo over 1 year ago
I guess so, I started working on it when cocos2d-airplay extension wasn't official and was only a post of a forum discussions. |
||||
| Brad Parks | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Brad Parks over 1 year ago
So are you planning on releasing to Android as well? For what it's worth, I've installed the lite version of Rolly Poly on my iPhone 4 and it works great.... and the slash effect looks good too! |
||||
| leo leo | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by leo leo over 1 year ago
The slash effect on the version you installed is the older one and uses CCMoitionStreak, the new one (with CCBlade) hasn't been published yet. |
||||
| winipcfg winipcfg | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by winipcfg winipcfg over 1 year ago
I also tried to import it. However, it looks there are some defects on the code. Note: You cannot delete the blade manually after it finish rendering. If you do it, the system crash instantly. |
||||
| leo leo | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by leo leo over 1 year ago
you right, the blade is never deleted unless you delete the parent. ccblade.zip (5.8 kB) |
||||
| leo leo | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by leo leo over 1 year ago
you right, the blade is never deleted unless you delete the parent. ccblade.zip (5.8 kB) |
||||
| Zhe Wang | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Zhe Wang over 1 year ago
I've added a link to this topic in sticky FAQ. Enjoy Coding, Enjoy Life. |
||||
| p0o0q Idiot | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by p0o0q Idiot over 1 year ago
Hi, I can compile example successfully. However, it can show Cocos2d startup image but no further action. There is no error message. I am using Base SDK iphone device 4.0 and iPhone OS Deployment Target iPhone OS 3.2. p0o0q |
||||
| 小 苏 | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by 小 苏 over 1 year ago
thank you so much ... it's very useful for me |
||||
| p0o0q Idiot | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by p0o0q Idiot over 1 year ago
I fixed the problem. Thanks. |
||||
| winipcfg winipcfg | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by winipcfg winipcfg 11 months ago
This class does not work in cocos2d-x 2.0 version. |
||||
| Jesus Bosch | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Jesus Bosch 29 days ago
it shouldnt be that hard to upgrade Check my latest cocos2dx game (iPad): Three Little Pigs (free) https://itunes.apple.com/au/app/three-little-pigs-learn-while/id578624548?mt=8 Twitter: @jboschaiguade |
||||
| Jose Antonio Andujar | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Jose Antonio Andujar 11 days ago
just here. http://www.jandusoft.com |
||||
| Csongor Fokt | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Csongor Fokt 10 days ago
I have some trouble with CCBlade.cpp
Allocating an object of abstract class type 'CCBlade' Can U help me pls ? |
||||
| Jose Antonio Andujar | RE: CCBlade (Slash effect like in Fruit Ninja) has been ported to Cocos2d-x (tested in Marmalade platform) | ||||
|
Added by Jose Antonio Andujar 10 days ago
use my version of CCBlade https://github.com/jandujar/CCBlade.git And don't forget that you need to create a TouchTrailLayer, not a CCBlade. TouchTrailLayer *layer = TouchTrailLayer::create(); http://www.jandusoft.com |
(1-18/18)
THX!