/android-cocos-headers

Cocos headers for Android GD Modding

Primary LanguageC++

android-cocos-headers

Cocos headers for Android GD Modding. Taken from iAndyHD3's repo and made a separate repo for convenience. The original headers belong to IAD.

Usage

  1. It's recommended to add this as a submodule like this:
    git submodule add https://github.com/JaanDev/android-cocos-headers.git libs/cocos2d
  2. Then in your CMakeLists.txt:
    add_subdirectory(libs/cocos2d)
    and
    target_link_libraries(your_project_name cocos2d)
  3. Copy the game's .so file (libcocos2dcpp.so) to the parent directory of where you cloned the submodule (for example, if you cloned to libs/cocos2d as in my example, you should copy the libcocos2dcpp.so to the libs directory). This is done to not to distribute the game's binary.

Contacts

My Discord: jaan2897