Cocos 2D-X v3.11 project, made using example code from Roger Engelbert's book Cocos 2d-x By Example - Second Edition. The code had to be overhauled to support Cocos v3.11 and to be able to compile in Windows, Linux and Android.
- Download and install Cocos2D-x.
git pull
- Copy the cocos 2d v3.11 library in a folder called
cocos2d
inside the project. - Compile using the
cocos compile
command. Supported platforms below
To compile use the following commands:
- Linux:
cocos run -p linux
- Android Gradle (Both armeabi and x86):
cocos run -p android --android-studio
- Windows Win32:
cocos run -p win32
Roger Engelbert for his book.