Remove warnings in cocos2d-x compilation
From: http://stackoverflow.com/questions/7997636/disable-warnings-in-xcode-from-frameworks Set “Inhibit All Warnings” to “Yes” in Build Settings of libcocos2d iOS target.
Continue readingEverything should be made as simple as possible, but not simpler – Einstein
From: http://stackoverflow.com/questions/7997636/disable-warnings-in-xcode-from-frameworks Set “Inhibit All Warnings” to “Yes” in Build Settings of libcocos2d iOS target.
Continue readingAppDelegate::applicationDidFinishLaunching before the first scene is created.
Continue readingIn cocos2d-x, PLIST file can be more easily used than normal XML files as following: FileUtils* util= FileUtils::getInstance(); std::string path=
Continue readingAt cocos2d-x version 3.3 experimental::AudioEngine was introduced and multiple background scores can be played. In addition to that, AudioEngine can call a
Continue readingFollowing MACRO can make different behavior between iOS and Android: #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) #define MUSIC_FILE “background.ogg” #else #define MUSIC_FILE “background.caf”
Continue readingInstead of cocos2d::MenuItemSprite , you can use cocos2d::ui::Button when you need to specify an action/event other than the button press released.
Continue readingfrom: Cocos2d-x Cookbook by Akihito Matsuura (Packt Publishing, 2015) With Bitmap font label, each character sprite can be accessed via
Continue readingTo pause a game scene, cocos2d::Director::pushScene can be used. The old scene would be suspended and when the new scene is popped
Continue readingIn constructor: _variable= Node::create(); _variable->retain(); In destructor: CC_SAFE_RELEASE(_variable);
Continue readingfrom: Cocos2d-x Cookbook by Akihito Matsuura (Packt Publishing, 2015) By extending Director class and adding two methods, previousScene and popScene, we can
Continue reading
Recent Comments