Cocos2d-x Study Notes (18)-game packaging (windows platform)

Source: Internet
Author: User

Cocos2d-x Study Notes (18)-game packaging (windows platform)
Previous games were compiled and run under vs2008. If you want to publish a game online or share it with others, you have to package the game. Next I will introduce you to a program packaging tool.
---- Enigma Virtual Box. I will not provide the download link for this software. If you enter this keyword online, there will be many download links.
To run the game, you must find the. exe file. Some may open the project directory (my file is the debug.win32 folder of mygame01133, but the .exe file is not found. So why can our program be compiled and run? The problem is that there are some differences in path settings. Open the vs2008 Project (my name is myGame01), right-click the project in Solution Explorer, and select "properties ",

.

Modify the output directory to the current Debug. win32 folder.

 
After that, the program will be compiled again. Now, go back to the debug.win32 folder under mygame01project, and find that the file folder contains more. EXE running programs.
Let's double-click it. This is a pop-up box, saying that the... lib,... dll, or some resource files are missing. Don't worry, let's solve it step by step.
Because the game will use some dll files and lib files, we will go to the Debug. win32 folder under the cocos2d-x to download the dll and lib file types to the current project under the Debug. win32 folder,

This time, in the double-hitting. EXE file, the result is normal. Now we copy the Debug. win32 file and rename it myGame01.
 
Now we start to use the Engima Virtual Box. The specific steps are as follows:

 
Step 1: select the .exe file;
The second part is the name output file;
The third part is to select dll, lib, and some resource files and drag them all to the blank space;
Fourth, operation options,

Starting from the beginning, you can package the game. You can see a. EXE file at the end. You can see that there are many. EXE files. This file does not need to be placed in a folder with other resources or dynamic link libraries. It can be run directly on other machines. Is it similar to some green software on the Internet;

Finally, I uploaded my own game to the Internet for you to try it out (the game is relatively simple, so forgive me !)

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.