Cocos2d-x 3.6 link Engineering Structure

Source: Internet
Author: User

Cocos2d-x 3.6 link Engineering Structure

The previous section describes how to create a LLK game. This section describes the structure of the new project, first clarifying the structure, and then describes how to write our own game.

After the download, the compilation will be successful. Some people released the source code is actually only part of the game logic Classes, This is not wrong, but if you want to smoothly compile, you must be familiar with the way cocos2d-x organizes the game. Only when you are familiar with the structure and know which part is used for the job can you get the Classes and debug and compile it.

Let's briefly explain how to compile this game source code.

The source code author downloads the corresponding game engine when releasing the source code. if the version is incorrect, there may be many API errors. This debugging correction requires profound basic skills.

After creating a new project, its directory structure may be similar to the project here.

Open the project folder, delete the files in Classes, and copy the files in the downloaded source code Classes to the Classes in the project. Add the copied files to the project in xcode. This is to add references.

Add the resource file to the project.

Compilation. If there is an error, the modification is incorrect. This is almost done.

If you have not made it clear or have any questions, you can leave a comment, view and reply.
Do not trust me in CSDN. I will not read this private message.

Related Article

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.