I. Introduction here, I think the production of the Flappy Bird game is coming to an end. As the saying goes: million rows. This section describes how to compile the game to the Android platform.
2. In the Android development environment, to install and run games on Android, you must first compile the game into an APK file. Therefore, we need to build an Android development environment. As for the establishment of the Android development environment, I don't want to introduce it more here. There should be a lot of similar tutorials.
3. Convert Win32 project to Android Project (note that the Cocos2d-x3.0beta is used here, different versions of the operation will be different) 1. Enter proj. android \ directory. There is a build_native.py script under this directory (ensure that the python runtime environment is available on the machine)
2. Enter the directory under cmd and run the script. Everything we need to do will be done for us:
The process of compiling each. cpp file is not seen here. If it is the first compilation, a series of. cpp file compilation processes will be seen.
Note: Sometimes an error occurs during compilation. At this time, make sure that every. cpp file under the Classes directory under the win32 project is included in the. mk file .. The mk file is displayed in the proj. android \ jni \ directory.
3. Use Eclipse to open this Android Project
Right-click the project name-> Android Tools-> export signed application package, and then generate the release installation package as prompted.
4. Over!
--------------------------
The game source code has been published, github address: https://github.com/OiteBoys/Earlybird
You can scan the QR code to download the latest game: