Setup win32 development environment

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值