Cocos2d-x Study Notes (18)--Game pack (Windows platform)

Source: Internet
Author: User

Cocos2d-x Study Notes (18)--Game pack (Windows platform)
The games that were done before are compiled and executed under VS2008. If you want to publish the game online or share the game with others, you have to pack the game. I would like to introduce you to a program packaging tool
----Enigma Virtual Box, this software download link I do not provide, you enter this keyword online, there are a lot of download links.
Now that you're performing the game, you'll have to find the. exe file. Some people may open the Debug.win32 folder under the project folder (my is myGame01) to find. But you do not see the. exe file. So why would our program compile and execute? The problem is that the path settings are somewhat out of the way.

Open Vs2008project (My is myGame01), under the Solution Explorer column, select Mygameproject Right-click on "Properties",

The problem is in the Output directory column. Here's the location. I looked for, in fact, after the decompression of the Cocos2d-x file add the Debug.win32 directory, open cocos2d-x (download package extracted directory name) under the Debug.win32 will be able to see a lot of once programmed program. Contains MyGame01.win32.exe.

Let's change the output folder to the current Debug.win32 folder


Then just compile the program again, then go back to Mygame01project under the Debug.win32 directory, found that the directory is more than the. exe execution program.


Let's double-click it. This is a box that is bouncing out, saying that the lack of ... lib or. dll or some resource files, do not worry, we take a step-by-step to solve.
Because the game will use some DLL files and Lib files, we will go to cocos2d-x under the Debug.win32 directory drop DLL and lib file type full copy to the current project under the Debug.win32 directory.

This time we are double-clicking the. exe file, and the result is executed properly. Now we copy the Debug.win32 file again and again named MyGame01.

Now we start using Engima Virtual Box, with detailed procedures such as:


The first step is to select the. exe file;
The second part is the name of the output file.
The third part is to select the DLL, LIB, and some resource files, all dragged to the empty space.
The four is the Operation option.

Finally start packing the game and finally be able to see an. exe file to see the size. Find this much more than the previous. exe file. This file does not need to and other resources or dynamic link library in a directory, can be executed directly on other machines, is not with some green software on the Internet very much like it;

Finally I put my own game to upload to the internet for everyone to play (the game is relatively simple, we forgive forgive!) )



http://blog.csdn.net/wen294299195/article/details/7909647


Cocos2d-x Study Notes (18)--Game pack (Windows platform)

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.