Setup win32 development environment

来源:互联网 发布:淘宝卖家退款验证码 编辑:程序博客网 时间:2024/05/22 02:14

Using Cocos2d-x version 2.15 in VS2010

1. Preparation

Before create your game with Cocos2d-x in Windows, setup your environment first. You should have installed VS2010 , download Cocos2d-x version 2.15(https://code.google.com/p/cocos2d-x/downloads/list) and python version 2.72(http://www.python.org/download/releases/2.7.2/).

2. Configuration

Unzip the cocos2d-x-2.1.5.zip you just downloaded in your working directory. And then import cocos2d-win32.vc2010.sln in VS2010 at workingdirectory/cocos2d-x-2.15. As below.

Then Select "Build Solution" as below

About 10 minutes later, if you see the below in your Output Window, congratulation!

3. Test

Now let's do some test. Select TestCpp and choose "Set as StartUp Project" as below

Start debugging

4. Create a win32 Cocos2d-x project

Installed the python you just downloaded. Locate the directory which you Cocos2d-x-2.15 in, then run the create_project.py in command line, finally you will see below

Check out your directory, you will find a new file "projects" in Cocos2d-x-2.15 and a new project "HelloWorld" you just created in "Cocos2d-x-2.15/projects". Now import the "proj.win32" in the VS2010 and enjoy the programming.

0 0
原创粉丝点击