摘要:
运行gradle 的assembleDebug或者assembleRelease 如果出现 { CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is 阅读全文
摘要:
/* 部分使用c++11 */ MusicLayer.cpp #include "MusicLayer.h" #ifdef _WIN32 #include "ATBAudioEngine/ATBAudioEngine.h" #endif #define DISPLAY Director::getIn 阅读全文
摘要:
*.h { #ifndef __MUSICLAYER_H__ #define __MUSICLAYER_H__ #include "cocos2d.h" #include "cocos/ui/UIButton.h" #include "cocos/ui/UIEditBox/UIEditBox.h" 阅读全文
摘要:
{ 本文来自 https://www.cnblogs.com/tla001/p/6710666.html } { namespace XMLDemo {static string fileNames[] = { "./resources/dream.xml", "./resources/utf8te 阅读全文
摘要:
*.h #ifndef __MUSICLAYER_H__ #define __MUSICLAYER_H__ #include "cocos2d.h" #include "cocos/ui/UIButton.h" #include "cocos/ui/UIEditBox/UIEditBox.h" #i 阅读全文
摘要:
string file("res/Button.png"); auto btn = cocos2d::ui::Button::create(file, file, file); btn->setColor(Color3B(24, 48, 64)); btn->setPosition(display 阅读全文
摘要:
#ifndef __MUSICLAYER_H__ #define __MUSICLAYER_H__ #include "cocos2d.h" using namespace std; using namespace cocos2d; class MusicLayer:public LayerColo 阅读全文