[Cocos2dx-3.0beta-making flappybird] will be over?-Android cross-compilation and subsequent

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.