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.