Skip to content
update libs for cocos2d-x 2.2.6 and support Android Studio, 64bit Android
C++ C Objective-C Objective-C++ Python Java Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CocosDenshion
cocos2dx ENABLE_BITCODE=No Mar 4, 2019
document init Feb 5, 2019
extensions cocos run Feb 13, 2019
external cocos run Feb 13, 2019
licenses init Feb 5, 2019
projects/hello ENABLE_BITCODE=No Mar 4, 2019
scripting/lua
template
tools cocos run Feb 13, 2019
.gitignore cocos run Feb 13, 2019
.travis.yml init Feb 5, 2019
AUTHORS init Feb 5, 2019
CHANGELOG init Feb 5, 2019
Emscripten.TODO init Feb 5, 2019
Makefile
README.mdown Update README.mdown Feb 18, 2019
build-win32.bat init Feb 5, 2019
clean.sh cocos run Feb 13, 2019
cocos2d-win32.vc2010.sln
cocos2d-win32.vc2012.sln init Feb 5, 2019
download-deps.py init Feb 5, 2019

README.mdown

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:

  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<void ()> &function)

  8. Support 64bit Android

  9. c++11 runtime

  10. Add CCScheduler::performFunctionInCocosThread

  11. libwebsocket support Android arm64

    CCLog("> Current cocos thread = %lu", std::hash<std::thread::id>{}(std::this_thread::get_id()));
    std::thread th ([pDirector]() {
        CCLog("> Hello from thread = %lu", std::hash<std::thread::id>{}(std::this_thread::get_id()));
        pDirector->getScheduler()->performFunctionInCocosThread([]() {
            CCLog("> Hello from cocos thread = %lu", std::hash<std::thread::id>{}(std::this_thread::get_id()));
        });
    });
    th.join();

TODO

  1. NDK >= r13b ​

cocos2d-x is a multi-platform 2D game framework in C++, branched on cocos2d-iphone and licensed under MIT.

You can’t perform that action at this time.