Here is my repository for cocos2d-x extensions.
Please check Wiki for more information and documentation.
Cool cocos2d-x extensions
Hi... the latest master branch does not work with the latest cocos2d-x code,
mainly it is because cc_timeval is no longer there... thanks!
1> c:\development\client\cocos2dx\include\ccdeprecated.h(781) : see declaration of 'cocos2d::CCPoint'
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(90): warning C4996: 'cocos2d::CCEvent': was declared deprecated
1> c:\development\client\cocos2dx\include\ccdeprecated.h(536) : see declaration of 'cocos2d::CCEvent'
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(64): warning C4996: 'cocos2d::CCEvent': was declared deprecated
1> c:\development\client\cocos2dx\include\ccdeprecated.h(536) : see declaration of 'cocos2d::CCEvent'
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(92): warning C4996: 'cocos2d::CCPoint': was declared deprecated
1> c:\development\client\cocos2dx\include\ccdeprecated.h(781) : see declaration of 'cocos2d::CCPoint'
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(67): error C2653: 'CCTime' : is not a class or namespace name
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(101): error C2079: 'currentTime' uses undefined struct 'CCSwipeGestureRecognizer::ccTouchEnded::cc_timeval'
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(67): error C2065: 'endTime' : undeclared identifier
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(102): error C2653: 'CCTime' : is not a class or namespace name
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(67): error C3861: 'gettimeofdayCocos2d': identifier not found
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(102): error C3861: 'gettimeofdayCocos2d': identifier not found
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(68): error C2653: 'CCTime' : is not a class or namespace name
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(104): error C2653: 'CCTime' : is not a class or namespace name
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(68): error C2065: 'startTime' : undeclared identifier
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(104): error C2065: 'startTime' : undeclared identifier
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(68): error C2065: 'endTime' : undeclared identifier
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\ccswipegesturerecognizer.cpp(104): error C3861: 'timersubCocos2d': identifier not found
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgesturerecognizer\cctapgesturerecognizer.cpp(68): error C3861: 'timersubCocos2d': identifier not found
1>c:\development\client\cocos2dx\cocos2d-x-extensions\ccgestur
Im trying to use the CCActivityIndicator but I can't see it when I execute my game.
I'm using this code to initialize it:
CCActivityIndicator *indicator = CCActivityIndicator::create();
indicator->ignoreAnchorPointForPosition(false);
indicator->setParent(this);
indicator->setAnchorPoint(ccp(0, 0));
indicator->setPosition(ccp(0, 0));
indicator->startAnimating();
addChild(indicator);
Should I do any special settup?
In the console I can read:
Cocos2d: cocos2d: CCSpriteFrameCache: Trying to use file ccactivityindicator.png as texture
I also tried CCProgressLayer in order to confirm there isn't any other problem and it worked perfectly.
I'm using cocos2dx 2.2
Thanks.
It would be great if CCGestureRecognizer could be fixed to work with the latest release of cocos2d-x (3.0 RC2)
Any adjustments in sight?
This actually a question only. Is there a way to get gesture velocity just like the gesture recognizer does in iOS? Thanks
CCTapGestureRecognizer* feedLayerDoubleTapGesture = CCTapGestureRecognizer::create();
feedLayerDoubleTapGesture->setTarget(this, callfuncO_selector(TAMainGameLayer::showFeedingMode));
feedLayerDoubleTapGesture->setNumberOfTapsRequired(2);
feedLayer->addChild(feedLayerDoubleTapGesture, 2);
This is how i add my gesture to a layer.
When i remove the gesture or the layer, my CCMenuItemImage just won't work anymore. Any advise is much appreciated
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.