« Previous -
Version 10/23
(diff) -
Next » -
Current version
WenSheng Yang, 2011-03-09 22:24
Cocos2d-x Application Wizard for Visual Studio User Guide¶
0、 Overview¶
- Cocos2d-win32's and Cocos2d-wophone's project can be generated by wizard.
- Wizard support Visual Studio 2008, Visual Studio 2010(0.8.0 or later), Visual C++2008 Express(0.8.0 or later), Visual C++ 2010 Express(0.8.0 or later) .
1、 Frist of all, get cocos2d-x source code from github¶
- Source archive here: Download
- Source code repository here: https://github.com/cocos2d/cocos2d-x
2、 Build Cocos2d-x Solution¶
- Build Cocos2d-win32 for win32 platform.
- The cocos2d-win32.sln is the vc2008 solution for win32.
- Run Build-win32.bat script to build solution and install application wizard automatically.
- Build cocos2d-wophone for wophone platform.
- If you want build cocos2d-x for wophone, should install wophone sdk first and place Cocos2d-x source code to wophone project directory.
- For wophone emulator: open cocos2d-wophone.sln and build solution.
- For wophone device: run build-wophone.sh script.
- Confirm the binary target.(example with win32)
- Cocos2d-win32 binary in the folder named Debug.win32 or Release.win32;
- Cocos2d-wohone binary in PRJ_TG3\LIB\Win32Lib.
- Run HelloWorld and tests(example with win32)
| |
|
3、 Install Cocos2d-x Application Wizard to Visual Studio Environment¶
- build-win32.bat does this step automatically, skip the section.
- Run setup script: \template\CCAppWiz.vs\InstallWizardForVS2008.js .
- Confirm the success notification.
4、 Add New Application Project¶
| |
|
p=.
p=.
5、 Build and Run New Cocos2d-x Project¶
| |
|
