# cocos2d-x-v2 **Repository Path**: holmes123/cocos2d-x-v2 ## Basic Information - **Project Name**: cocos2d-x-v2 - **Description**: update libs for cocos2d-x 2.2.6 and support Android Studio, 64bit Android - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2019-06-02 - **Last Updated**: 2021-03-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README cocos2d-x ========= ## Games 1. https://play.google.com/store/apps/details?id=com.sosc.firstfantasy1 ##

Support update 3rd libs via PayPal:
PayPal $10, $50, $100, others.

## tested 1. cocos command 3.8.1 with ndk-r10d ``` cocos run -p android --android-studio --app-abi armeabi-v7a:arm64-v8a cocos run -p android --android-studio --app-abi armeabi-v7a:arm64-v8a -m release ``` 2. cocos command 3.8.1 with ndk-r14b ``` cocos run -p android --android-studio --app-abi armeabi-v7a:arm64-v8a:x86 cocos run -p android --android-studio --app-abi armeabi-v7a:arm64-v8a:x86 -m release ``` ## setup Android Studio 3.2.1 NDK: r10d Set Android NDK location: ![](https://user-images.githubusercontent.com/5056328/52651349-f825cb80-2f26-11e9-9db3-879f6d32cc13.png) 1. Update libs to 3.16 - libjpeg - libpng (1.6.16) - libtiff (20120922) - libwebp - libcurl (7.52.1) - openssl (OpenSSL 1.1.0c 10 Nov 2016) - zlib (1.2.8) 2. Remove armeabi 3. Not build http & websocket (maybe rebuild old curl version to support http) 4. Android Studio support 5. Keep iOS,Android,Win32,Mac platform 6. Remove Javascript 7. Add `void CCScheduler::performFunctionInCocosThread(const std::function &function)` 8. Support 64bit Android 9. c++11 runtime 10. Add CCScheduler::performFunctionInCocosThread 12. libwebsocket support Android arm64 ```c++ CCLog("> Current cocos thread = %lu", std::hash{}(std::this_thread::get_id())); std::thread th ([pDirector]() { CCLog("> Hello from thread = %lu", std::hash{}(std::this_thread::get_id())); pDirector->getScheduler()->performFunctionInCocosThread([]() { CCLog("> Hello from cocos thread = %lu", std::hash{}(std::this_thread::get_id())); }); }); th.join(); ``` ## TODO 1. [x] NDK >= r13b ​ [cocos2d-x][1] is a multi-platform 2D game framework in C++, branched on [cocos2d-iphone][2] and licensed under MIT. [1]: http://www.cocos2d-x.org "cocos2d-x" [2]: http://www.cocos2d-iphone.org "cocos2d for iPhone"